Skip to content

Commit

Permalink
Use checkpointed mesh in defining parameters for KGO checking tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tommbendall authored Mar 10, 2025
1 parent 2b0092a commit c895753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion integration-tests/equations/test_boussinesq.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def run_boussinesq(tmpdir, compressible):
checkpoint=True)
check_mesh = pick_up_mesh(check_output, mesh_name)
check_domain = Domain(check_mesh, dt, "CG", 1)
check_eqn = BoussinesqEquations(check_domain, parameters, compressible)
check_parameters = BoussinesqParameters(check_mesh)
check_eqn = BoussinesqEquations(check_domain, check_parameters, compressible)
check_io = IO(check_domain, check_output)
check_stepper = SemiImplicitQuasiNewton(check_eqn, check_io, [], [])
check_stepper.io.pick_up_from_checkpoint(check_stepper.fields)
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/equations/test_sw_fplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def run_sw_fplane(tmpdir):
checkpoint=True)
check_mesh = pick_up_mesh(check_output, mesh_name)
check_domain = Domain(check_mesh, dt, 'RTCF', 1)
check_eqn = ShallowWaterEquations(check_domain, parameters, fexpr=fexpr)
check_parameters = ShallowWaterParameters(check_mesh, H=H, g=g)
check_eqn = ShallowWaterEquations(check_domain, check_parameters, fexpr=fexpr)
check_io = IO(check_domain, output=check_output)
check_stepper = SemiImplicitQuasiNewton(check_eqn, check_io, [], [])
check_stepper.io.pick_up_from_checkpoint(check_stepper.fields)
Expand Down

0 comments on commit c895753

Please sign in to comment.