Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickersing committed Dec 19, 2023
1 parent d0eb6dd commit 5fc8eec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ isdir(outdir) && rm(outdir, recursive = true)

total_energy = Trixi.energy_total(cons_vars, equations)
@test total_energy Trixi.entropy(cons_vars, equations)

@test total_energy
Trixi.energy_internal(cons_vars, equations) +
energy_kinetic(cons_vars, equations)
# test tuple args
cons_vars = Trixi.prim2cons((H, v, b), equations)
entropy_vars = Trixi.cons2entropy(cons_vars, equations)
Expand Down

0 comments on commit 5fc8eec

Please sign in to comment.