Skip to content

Commit

Permalink
flake8 fixes and added a potential energy test
Browse files Browse the repository at this point in the history
  • Loading branch information
Witt-D committed Oct 11, 2023
1 parent 3996356 commit e2817f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/compressible/dcmip_3_1_meanflow_quads.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
dirname=dirname,
dumpfreq=dumpfreq,
)
diagnostic_fields = [Perturbation('theta'), Perturbation('rho'), CompressibleKineticEnergy()]
diagnostic_fields = [Perturbation('theta'), Perturbation('rho'),
CompressibleKineticEnergy(), PotentialEnergy(eqns)]
io = IO(domain, output, diagnostic_fields=diagnostic_fields)

# Transport schemes
Expand Down
2 changes: 1 addition & 1 deletion examples/shallow_water/williamson_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
dump_nc=True,
)

diagnostic_fields = [RelativeVorticity(), SteadyStateError('RelativeVorticity'),
diagnostic_fields = [RelativeVorticity(), SteadyStateError('RelativeVorticity'),
PotentialVorticity(),
ShallowWaterKineticEnergy(),
ShallowWaterPotentialEnergy(parameters),
Expand Down

0 comments on commit e2817f9

Please sign in to comment.