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 19a37f6 commit dfe4bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_tree_2d_eulermulti.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_2d_dgsem")
u = [-1.7433292819144075, 0.8844413258376495, 0.6050737175812364, 0.8261998359817043, 1.0801186290896465, 0.505654488367698, 0.6364415555805734, 0.851669392285058, 0.31219606420306223, 1.0930477805612038]
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 dfe4bd2

Please sign in to comment.