Skip to content

Commit

Permalink
Merge pull request #480 from firedrakeproject/TBendall/SIQN_came_by_2…
Browse files Browse the repository at this point in the history
…x2_hurrah

Change default iterations of SIQN to be 2x2
  • Loading branch information
jshipton authored Mar 12, 2024
2 parents 62db9f4 + e033008 commit 68d6fca
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions gusto/timeloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def __init__(self, equation_set, io, transport_schemes, spatial_methods,
diffusion_schemes=None, physics_schemes=None,
slow_physics_schemes=None, fast_physics_schemes=None,
alpha=Constant(0.5), off_centred_u=False,
num_outer=4, num_inner=1):
num_outer=2, num_inner=2):

"""
Args:
Expand Down Expand Up @@ -522,12 +522,12 @@ def __init__(self, equation_set, io, transport_schemes, spatial_methods,
is centred. If True offcentring uses value of alpha.
num_outer (int, optional): number of outer iterations in the semi-
implicit algorithm. The outer loop includes transport and any
fast physics schemes. Defaults to 4. Note that default used by
fast physics schemes. Defaults to 2. Note that default used by
the Met Office's ENDGame and GungHo models is 2.
num_inner (int, optional): number of inner iterations in the semi-
implicit algorithm. The inner loop includes the evaluation of
implicit forcing (pressure gradient and Coriolis) terms, and the
linear solve. Defaults to 1. Note that default used by the Met
linear solve. Defaults to 2. Note that default used by the Met
Office's ENDGame and GungHo models is 2.
"""

Expand Down
3 changes: 2 additions & 1 deletion integration-tests/equations/test_dry_compressible.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def run_dry_compressible(tmpdir):
# Time stepper
stepper = SemiImplicitQuasiNewton(eqn, io, transported_fields,
transport_methods,
linear_solver=linear_solver)
linear_solver=linear_solver,
num_outer=4, num_inner=1)

# ------------------------------------------------------------------------ #
# Initial conditions
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/equations/test_incompressible.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def run_incompressible(tmpdir):
# Time stepper
stepper = SemiImplicitQuasiNewton(eqn, io, transported_fields,
transport_methods,
linear_solver=linear_solver)
linear_solver=linear_solver,
num_outer=4, num_inner=1)

# ------------------------------------------------------------------------ #
# Initial conditions
Expand Down
3 changes: 2 additions & 1 deletion integration-tests/equations/test_moist_compressible.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ def run_moist_compressible(tmpdir):
# Time stepper
stepper = SemiImplicitQuasiNewton(eqn, io, transported_fields,
transport_methods,
linear_solver=linear_solver)
linear_solver=linear_solver,
num_outer=4, num_inner=1)

# ------------------------------------------------------------------------ #
# Initial conditions
Expand Down
4 changes: 3 additions & 1 deletion integration-tests/equations/test_sw_fplane.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def run_sw_fplane(tmpdir):
DGUpwind(eqns, "D")]

# Time stepper
stepper = SemiImplicitQuasiNewton(eqns, io, transported_fields, transport_methods)
stepper = SemiImplicitQuasiNewton(eqns, io, transported_fields,
transport_methods,
num_outer=4, num_inner=1)

# ------------------------------------------------------------------------ #
# Initial conditions
Expand Down

0 comments on commit 68d6fca

Please sign in to comment.