Skip to content

Commit

Permalink
Add MARBL_TRACERS_MAY_REINIT to param file
Browse files Browse the repository at this point in the history
The default is still false, but in some cases (branching off a run that did not
have MARBL enabled) it would be useful to set as true instead
  • Loading branch information
mnlevy1981 committed Dec 29, 2023
1 parent 3c2ed29 commit d4e9b2d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tracer/MARBL_tracers.F90
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module MARBL_tracers
type(MOM_restart_CS), pointer :: restart_CSp => NULL() !< A pointer to the restart control structure

type(vardesc), allocatable :: tr_desc(:) !< Descriptions and metadata for the tracers
logical :: tracers_may_reinit = .false. !< If true the tracers may be initialized if not found in a restart file
logical :: tracers_may_reinit !< If true the tracers may be initialized if not found in a restart file

character(len=200) :: fesedflux_file !< name of [netCDF] file containing iron sediment flux
character(len=200) :: feventflux_file !< name of [netCDF] file containing iron vent flux
Expand Down Expand Up @@ -553,6 +553,11 @@ function register_MARBL_tracers(HI, GV, US, param_file, CS, tr_Reg, restart_CS)
CS%IC_file = trim(slasher(inputdir))//trim(CS%IC_file)
call log_param(param_file, mdl, "INPUTDIR/MARBL_TRACERS_IC_FILE", CS%IC_file)
endif
call get_param(param_file, mdl, "MARBL_TRACERS_MAY_REINIT", CS%tracers_may_reinit, &
"If true, tracers may go through the initialization code "//&
"if they are not found in the restart files. Otherwise "//&
"it is a fatal error if tracers are not found in the "//&
"restart files of a restarted run.", default=.false.)
call get_param(param_file, mdl, "MARBL_TRACERS_INIT_VERTICAL_REMAP_ONLY", CS%ongrid, &
"If true, initial conditions are on the model horizontal grid. " //&
"Extrapolation over missing ocean values is done using an ICE-9 "//&
Expand Down

0 comments on commit d4e9b2d

Please sign in to comment.