Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

question on how to restart a run from a restart data file for CICE

chenshzh12

Shengzhe Chen
New Member
Hi there,

I would like to restart a run from a restart data file in CICE. For example, I ran CICE for the year 2012, and then I got the restart file iced.2013-01-01-00000.nc in the restart directory. However, when I tried to restart a run based on the restart data file iced.2013-01-01-00000.nc, I found it did not work and it started with the same initial condition just like the year 2012. I am curious why this happened and hope can get some help.

For the restart run, I followed the mannual documentation and set
runtype = initial,
ice_ic = iced.2013-01-01-00000.nc,
restart = .true.

for the original year 2012 run, i set
runtype = initial,
ice_in = 'default',
restart = .false.

Best,
Shengzhe
 

dbailey

CSEG and Liaisons
Staff member
Not sure if it matters, but ice_ic = 'iced.2013-01-01-00000.nc' might need to be in quotes here. Also, to be clear if this is in your run directory you might do:

ice_ic = './iced.2013-01-01-00000.nc'

Normally ice_ic includes the whole path to the restart file. Is the file in the run directory? Make sure this path is correct. Also, for an initial run, you might want use_restart_time to be false. Unless you intend to actually do a 'continue' run?
 

chenshzh12

Shengzhe Chen
New Member
Not sure if it matters, but ice_ic = 'iced.2013-01-01-00000.nc' might need to be in quotes here. Also, to be clear if this is in your run directory you might do:

ice_ic = './iced.2013-01-01-00000.nc'

Normally ice_ic includes the whole path to the restart file. Is the file in the run directory? Make sure this path is correct. Also, for an initial run, you might want use_restart_time to be false. Unless you intend to actually do a 'continue' run?
Thank you for your reply, sir. I made sure that I have put the right settings here, but it still did not work. Attached below are some settings I put in ice_in and results, hope you can give some suggestions.

For the original year 2012 run,

ice_ic = 'default'
restart = .false.
restart_ext = .false.
use_restart_time = .true.
restart_format = 'nc'
lcdf64 = .false.
restart_dir = './restart/'
restart_file = 'iced'
pointer_file = './ice.restart_file'

and the vicen I got from the restart data file after 1 year run (iced.2013-01-01-00000.nc) looks like this (I sum up all categories to get vice)
1596212809555.png

Then I tried to use this restart file (particularly this vicen) as the initial condition to start another year run. The settings are attached below,

runtype = 'initial'
ice_ic = '/network/rit/lab/liulab_rit/schen/cice2/myrun/sit_apnd_0/restart/iced.2013-01-01-00000.nc'
restart = .true.
restart_ext = .true.
use_restart_time = .false.
restart_format = 'nc'
lcdf64 = .false.
restart_dir = './restart/'
restart_file = 'iced'
pointer_file = './ice.restart_file'

However, the iceh_ic.2012-01-01-00000.nc I got from this run, which is the actual initial condition used by the restart run (I set write_ic = .true. and use_restart_time = .false.) is not same to iced.2013-01-01-00000.nc. The vice in the iceh_ic.2012-01-01-00000.nc looks like this (attached below; all 0). Essentially I want it to start from the iced.2013-01-01-00000.nc (the first picture), which is the restart file I got from the original 1 year of year 2012 run.
1596213398797.png

Do you know what should I do to let this run start from the initial condition of the restart data file iced.2013-01-01-00000.nc?

Best,
Shengzhe
 

dbailey

CSEG and Liaisons
Staff member
The initial state you get from write_ic is a history file format, while the restart file is different. Try setting dumpfreq = 'd' and dumpfreq_n to '1' to get a one-day restart file. Actually, you changed restart_ext from .false. to .true. When this is .true. it writes/reads the ghost cell information.

Dave
 

CST1996

Shutao Cao
Member
Hi there,

I would like to restart a run from a restart data file in CICE. For example, I ran CICE for the year 2012, and then I got the restart file iced.2013-01-01-00000.nc in the restart directory. However, when I tried to restart a run based on the restart data file iced.2013-01-01-00000.nc, I found it did not work and it started with the same initial condition just like the year 2012. I am curious why this happened and hope can get some help.

For the restart run, I followed the mannual documentation and set
runtype = initial,
ice_ic = iced.2013-01-01-00000.nc,
restart = .true.

for the original year 2012 run, i set
runtype = initial,
ice_in = 'default',
restart = .false.

Best,
Shengzhe
I think maybe you have to change the runtype from 'initial' to 'continue'. Also, npt, year_init need to be changed.
 
Top