re-inirialization file

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
asujrpv

re-inirialization file

#1 Unread post by asujrpv »

Hello everybody,

I was able to run successfully roms using analytical initial conditions. Now I want to start a simulation using the last time record of my previous simulation, but for a longer time.

How can I save the ocean_ini.nc file that could be used for a subsequent simulation?

Initially, my simulation is for 5000 iterations, the next one should be for 1000 so first I used the NREC == 0 and then once I got the solution used in the next simulation NRREC == -1, but got the following error

NETCDF_OPEN - unable to open existing NetCDF file:
ocean_ini.nc
call from: checkvars.F

Elapsed CPU time (seconds):

Thread # 0 CPU: 0.700
Total: 0.700

Nonlinear model elapsed time profile:

Allocation and array initialization .............. 0.650 (92.8571 %)
Total: 0.650 92.8571

All percentages are with respect to total time = 0.700

ROMS/TOMS - Output NetCDF summary for Grid 01:

ROMS/TOMS - Output error ............ exit_flag: 3

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: re-inirialization file

#2 Unread post by kate »

We usually save to a restart file every NRST timesteps, then use this as the next initial condition. So on restart, you have to change NRREC and also INI_NAME. Do you have the ocean_ini.nc file? Was it written as a history, averages, or restart file? The restart file should contain everything you will need on restart.

It looks like ANA_INITIAL only calls ana_initial when nrrec==0, so you won't need to recompile.

Post Reply