Skip to content

Commit

Permalink
Updated formatting
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse Chan <[email protected]>
  • Loading branch information
teohyikhaw and jlchan authored Dec 11, 2023
1 parent dfe4bd2 commit 4d7b2ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_tree_1d_eulermulti.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_1d_dgsem")
u = [-1.4632513788889214, 0.9908786980927811, 0.2909066990257628, 0.6256623915420473, 0.4905882754313441, 0.14481800501749112, 1.0333532872771651, 0.6805599818745411]
w = cons2entropy(u, equations)
@test w ForwardDiff.gradient(u -> Trixi.total_entropy(u, equations), u)
# test that `entropy2cons` is the inverse of `cons2entropy`
@test entropy2cons(w, equations) u
end

Expand Down

0 comments on commit 4d7b2ec

Please sign in to comment.