Error to run coupling WRF+ROMS+SWAN

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Error to run coupling WRF+ROMS+SWAN

#1 Unread post by agpc »

Hi everyone,
I have a problem when I run the COAWST model with WRF+ROMS+SWAN coupling option.
The PRINT01-001 file displayed that:
&COMPUTE STAT 20161016.000000
COMPUTE NONSTAT 20161016.000000 30 MIN 20161018.000000
** Warning : Quadruplets will be updated per iteration
** Warning : instead of per sweep. This will increase
** Warning : amount of internal memory with a factor 2
** Error : It is not recommended to use quadruplets
** Error : in combination with zero wind conditions.
** No start of computation because of error level: 2
I haven't seen any problem in the coawst.out file. I have attached these files in this post.
Please help me to address it.
Many thanks,
-Manh,
Attachments
PRINT01-001.txt
(7.58 KiB) Downloaded 284 times
coawst.out.txt
(20.02 KiB) Downloaded 244 times

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

Re: Error to run coupling WRF+ROMS+SWAN

#2 Unread post by jcwarner »

this is an error from SWAN. it is saying

"Error : It is not recommended to use quadruplets
Error : in combination with zero wind conditions."

Also looks like you turned off the winds:

!&& KEYWORD TO CREATE WIND GRID &&
!INPGRID WIND REGULAR -105 10 0 220 160 0.25 0.25 &
! NONSTATIONARY 20121028.000000 6 HR 20121031.000000
!&READINP WIND 1 'Projects/Sarika4/swan_GFS_Oct2012.dat' 4 0 FREE

So you cant run SWAN with 0 winds and quadruplets on.
-j

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: Error to run coupling WRF+ROMS+SWAN

#3 Unread post by agpc »

Hi John,
I see the information in the COAWST manual like that:
If not coupled to wrf, you need to download wind data from somewhere and create an ascii wind forcing file. See the SWAN manual as to the format.
In my case, I ran SWAN with WRF, so I do not need the winds data, right?
So, can I do to run with my case?
Thank you very much!
-Manh

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

Re: Error to run coupling WRF+ROMS+SWAN

#4 Unread post by jcwarner »

try this

&& KEYWORD TO CREATE WIND GRID &&
INPGRID WIND REGULAR -105 10 0 220 160 0.25 0.25 &
NONSTATIONARY 20121028.000000 6 HR 20121031.000000
&READINP WIND 1 'Projects/Sandy/swan_GFS_Oct2012.dat' 4 0 FREE

this sets the INPGRID for WIND, so then SWAN knows that it will get wind on a grid.
Then comment the line to READ the wind, like above. then swan will use the winds from wrf, not from a file.

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: Error to run coupling WRF+ROMS+SWAN

#5 Unread post by agpc »

Hi John,
This is my swan's namelist file:
&& KEYWORDS TO CREATE AND READ COMPUTATIONAL GRID &&
CGRID CURVILINEAR 299 219 EXC 9.999000e+003 9.999000e+003 CIRCLE 36 0.04 1.0 24
READGRID COORDINATES 1 'Projects/Sarika/swan_coord.grd' 4 0 0 FREE

&& KEYWORDS TO CREATE AND READ BATHYMETRY GRID &&
INPGRID BOTTOM CURVILINEAR 0 0 299 219 EXC 9.999000e+003
READINP BOTTOM 1 'Projects/Sarika/swan_bathy.bot' 4 0 FREE

&& KEYWORD TO CREATE CURRENT GRID &&
INPGRID CURRENT CURVILINEAR 0 0 299 219 EXC 9.999000e+003 &
NONSTATIONARY 20161016.000000 2 DAY 20161018.000000

&& KEYWORD TO CREATE WATER LEVEL GRID &&
INPGRID WLEV CURVILINEAR 0 0 299 219 EXC 9.999000e+003 &
NONSTATIONARY 20161016.000000 2 DAY 20161018.000000

&& KEYWORD TO CREATE BOTTOM FRIC GRID &&
INPGRID FRIC CURVILINEAR 0 0 299 219 EXC 9.999000e+003 &
NONSTATIONARY 20161016.000000 2 DAY 20161018.000000

!&& KEYWORD TO CREATE WIND GRID &&
INPGRID WIND REGULAR 0 0 299 219 0.25 0.25 &
NONSTATIONARY 20161016.000000 6 HR 20161018.000000
!&READINP WIND 1 'Projects/Sarika_new/swan_GFS_Oct2012.dat' 4 0 FREE
This is my Bound_spec_command file:

Code: Select all

& Boundary files  ****************************************
BOUND SHAPESPEC JONSWAP MEAN DSPR DEGREES        
BOUNDSPEC SEGMENT IJ    0    0    0   219 CONSTANT PAR  0.1  20.0    0.0  15
BOUNDSPEC SEGMENT IJ    0    0  299     0 CONSTANT PAR  0.1  20.0    0.0  15
BOUNDSPEC SEGMENT IJ  299    0  299   219 CONSTANT PAR  0.1  20.0    0.0  15
BOUNDSPEC SEGMENT IJ    0  219  299   219 CONSTANT PAR  0.1  20.0    0.0  15    
Has it been set-up right? The detail is included in my attachment.
Many thanks,
-Manh
Attachments
swan_sarika.in.txt
(4.03 KiB) Downloaded 267 times

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

Re: Error to run coupling WRF+ROMS+SWAN

#6 Unread post by jcwarner »

SWAN uses the symbol & for a comment line, not !

Does this work:
&& KEYWORD TO CREATE WIND GRID &&
INPGRID WIND REGULAR 0 0 299 219 0.25 0.25 &
NONSTATIONARY 20161016.000000 6 HR 20161018.000000
&READINP WIND 1 'Projects/Sarika_new/swan_GFS_Oct2012.dat' 4 0 FREE

This is getting more into COAWST issues not roms.
so if you are still having troubles then post on the coawst github
https://github.com/jcwarner-usgs/COAWST

The Sandy case should run as distributed.
-j

Post Reply