Restart

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
PeterRobins
Posts: 3
Joined: Wed Jun 19, 2013 3:10 pm
Location: Bangor University

Restart

#1 Unread post by PeterRobins »

Hi, I get an error making a restart simulation.

I run a baseline simulation, then change 3 things:
1) increase NTIMES,
2) change NRREC to -1,
3) change ININAME to ocean_rst.nc (my baseline generated restart file).

I then get this error:

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

Any suggestions very welcome!
Thanks, Peter
(P.S: I have PERFECT_RESTSART in my header file)

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

Re: Restart

#2 Unread post by kate »

It has told you exactly what its problem is - it can't open that file. Did you spell the name correctly? Does it exist and have valid records in it? I don't see how we can help you.

Those are the correct steps to take on restart. Depending on how and what you are writing, you might also want to set LDEFOUT to F on restart.

PeterRobins
Posts: 3
Joined: Wed Jun 19, 2013 3:10 pm
Location: Bangor University

Re: Restart

#3 Unread post by PeterRobins »

Thanks Kate,
I've checked everything and I still get the error.
Does it matter which variables I output?
Thanks

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

Re: Restart

#4 Unread post by kate »

No, it doesn't matter which variables. ROMS will decide which variables to write to the restart file, independent of anything you do (other than the PERFECT_RESTART flag).

rtopper
Posts: 24
Joined: Fri Jul 04, 2014 2:32 pm
Location: MARUM, University of Bremen

Re: Restart

#5 Unread post by rtopper »

Maybe a silly suggestion, but I know I've forgotten this a couple of times ...
Could it be that you've forgotten to move the ocean_rst.nc file to your header/project dir (the directory where you have your .h file) ?

Post Reply