COMPUTE command in swan

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
moerajing
Posts: 3
Joined: Thu Sep 06, 2018 1:40 pm
Location: South China Sea Institute of Oceanology,Chinese Ac

COMPUTE command in swan

#1 Unread post by moerajing »

Hi, all!
I'm doing a ROMS-WRF-SWAN coupling case .I run SWAN in NONSTATIONARY MODE with COMPUTE NONSTATIONARY [tbegc] [deltc] MIN [tendc].
According to the SWAN documentation:
"In the case MODE NONSTATIONARY several commands COMPUTE can appear, where the wave state at the end of one computation is used as initial state for the next one, unless a command INIT appears in between the two COMPUTE commands. This enables the user to make a stationary computation to obtain the initial state for a nonstationary computation and/or to change the computational time step during a computation, to change a boundary condition etc."
So I write the namelist-file swan.in as follows:
MODE NONSTATIONARY TWODIMENSIONAL
...My input files and physics parameter...
BLOCK **********
COMPUTE NONSTAT 20181016.000000 120 SEC 20181016.030000
HOTFILE 'swanini01.hot'
COMPUTE NONSTAT 20181016.030000 120 SEC 20181016.060000
HOTFILE 'swanini02.hot'

However, the model ended with the first computation succeeded, stopped at 20181016.030000 . I checked the PRINT file , whose last line is: COMPUTE NONSTAT 20181016.030000 120 SEC 20181016.060000, and there is no extra error message.So only the first COMPUTE command gets read, if I make some syntax errors? If anyone knows how to use several COMPUTE commands? Thanks very much!

Best,
Moera

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: COMPUTE command in swan

#2 Unread post by jcwarner »

are you trying to do this with swan by itself or in a coupled mode?
it would not work in a coupled mode.
the coupled mode is setup to only work with swan running over a computational period that is the same as the other models.

moerajing
Posts: 3
Joined: Thu Sep 06, 2018 1:40 pm
Location: South China Sea Institute of Oceanology,Chinese Ac

Re: COMPUTE command in swan

#3 Unread post by moerajing »

I am doing this in a coupled mode .
Thanks john, I got it !

Post Reply