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 committed Mar 10, 2025
1 parent 2b0092a commit 80e8f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions integration-tests/equations/test_boussinesq.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ 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)

return stepper, check_stepper


@pytest.mark.parametrize("compressible", [True, False])

Check failure on line 119 in integration-tests/equations/test_boussinesq.py

View workflow job for this annotation

GitHub Actions / Run linter

E302

integration-tests/equations/test_boussinesq.py:119:1: E302 expected 2 blank lines, found 1
def test_boussinesq(tmpdir, compressible):

Expand Down
4 changes: 2 additions & 2 deletions integration-tests/equations/test_sw_fplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ 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)

return stepper, check_stepper


def test_sw_fplane(tmpdir):

Check failure on line 125 in integration-tests/equations/test_sw_fplane.py

View workflow job for this annotation

GitHub Actions / Run linter

E302

integration-tests/equations/test_sw_fplane.py:125:1: E302 expected 2 blank lines, found 1

dirname = str(tmpdir)
Expand Down

0 comments on commit 80e8f1e

Please sign in to comment.