Skip to content

Commit

Permalink
Make tc4 faster
Browse files Browse the repository at this point in the history
  • Loading branch information
MJHarrison-GFDL committed Oct 25, 2019
1 parent 9fdbe98 commit 3c0d52a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .testing/tc4/MOM_input
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@
USE_REGRIDDING = True ! [Boolean] default = False
! If True, use the ALE algorithm (regridding/remapping). If False, use the
! layered isopycnal algorithm.
DT = 300.0 ! [s]
DT = 1200.0 ! [s]
! The (baroclinic) dynamics time step. The time-step that is actually used will
! be an integer fraction of the forcing time-step (DT_FORCING in ocean-only mode
! or the coupling timestep in coupled mode.)
DT_THERM = 3600.0 ! [s] default = 300.0
! The thermodynamic and tracer advection time step. Ideally DT_THERM should be
! an integer multiple of DT and less than the forcing or coupling time-step,
! unless THERMO_SPANS_COUPLING is true, in which case DT_THERM can be an integer
! multiple of the coupling timestep. By default DT_THERM is set to DT.
C_P = 3925.0 ! [J kg-1 K-1] default = 3991.86795711963
! The heat capacity of sea water, approximated as a constant. This is only used
! if ENABLE_THERMODYNAMICS is true. The default value is from the TEOS-10
Expand Down Expand Up @@ -377,7 +382,7 @@ WIND_CONFIG = "zero" !
! === module MOM_restart ===

! === module MOM_main (MOM_driver) ===
DAYMAX = 1.0 ! [days]
DAYMAX = 0.25 ! [days]
! The final time of the whole simulation, in units of TIMEUNIT seconds. This
! also sets the potential end time of the present run segment if the end time is
! not set via ocean_solo_nml in input.nml.
Expand Down
2 changes: 1 addition & 1 deletion .testing/tc4/build_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def t_fc(x, y, z, radius=5.0, tmag=1.0):


ny, nx = x.shape
nz = 10
nz = 3
z = (np.arange(nz) * zbot0) / nz

temp = t_fc(x, y, z)
Expand Down

0 comments on commit 3c0d52a

Please sign in to comment.