COSIMA / cice5

Clone of The Los Alamos sea ice model (CICE) with ACCESS drivers. See https://github.com/CICE-Consortium/CICE-svn-trunk/tree/cice-5.1.2
4 stars 13 forks source link

Added capability to split input and restart directories. #7

Closed aidanheerdegen closed 6 years ago

aidanheerdegen commented 6 years ago

Previously model input was all read from restart_dir and then restarts were written to the same directory.

This change adds input_dir to the setup_nml namelist. By default, if input_dir is not specified in the namelist it will be set to the same as restart_dir, reproducing previous behaviour, and so making this backwards compatible.

If input_dir is specified then all inputs will be read from the specified directory, and restarts will be written to restart_dir.

aidanheerdegen commented 6 years ago

Can you see any problems with this @nicjhan? I've done this so cice5 can conform more to the payu way of running as part of adding manifest support. I believe it is backwards compatible so shouldn't break anything.

The idea is the iced*.nc restart file can be linked to an INPUT directory (input_dir) and then a new restart can be written to a RESTART directory (restart_dir).

aidanheerdegen commented 6 years ago

I have merged this as there were no objections.

aidanheerdegen commented 6 years ago

Fixes https://github.com/OceansAus/cice5/issues/5