NCAR / MOM6

NCAR/CESM fork of the Modular Ocean Model v.6 (MOM6)
Other
3 stars 20 forks source link

Support RUN_TYPE=hybrid #265

Closed gustavo-marques closed 6 months ago

gustavo-marques commented 10 months ago

As reported in https://github.com/NCAR/amwg_dev/discussions/459, MOM6 does not read a restart file when RUN_TYPE=hybrid.

Here is the relevant code. When RUN_TYPE=hybrid, starttype='startup' instead of starttype='continue' and the simulation is treated as "initial".

For a temporary fix, manually specify the initial condition files (temp, salt, h, u, and v) through user_nl_mom during the initial submission.

jedwards4b commented 10 months ago

The way this works for cice6 is that the namelist variable ice_ic is set to the hybrid case restart file. This causes the variable restart, which was set to false based on the startup=initial to be changed to .true. if the ice_ic file namelist variable is set, that happens here.

jedwards4b commented 10 months ago

@gustavo-marques Is this method or something similar possible in Mom?

gustavo-marques commented 10 months ago

@jedwards4b, thanks for your help! After talking to @alperaltuntas it seems our only option is to do something similar, but via MOM_interface.