DOI-USGS / COAWST

COAWST modeling system git repository
Other
105 stars 50 forks source link

ROMS+SWAN - running with minimal physics #72

Closed erholz closed 2 years ago

erholz commented 2 years ago

Hi,

I am trying to run a coupled ROMS+SWAN simulation where waves are the only forcing condition (I want to use ROMS for some of the vegetation modules). I am using the available Veg_test example case as a template but am looking to pare down the simulation to as minimal physics as possible for debugging purposes, including turning off vegetation. Iteratively adding, my project.h file currently includes the following cpp options, but I continue to get an error that it can't find the ocean_frc.nc file (READ_PHYPAR - Grid 01, could not find input file):

define SWAN_MODEL

define ROMS_MODEL

define MCT_LIB

define SOLVE3D

define UV_KIRBY

define ANA_M2OBC

define ANA_FSOBC

define MIX_S_UV

define WEC_VF

define DIAGNOSTICS_UV

My question is, how is the Veg_test example able to run ROMS+SWAN without providing a ocean_frc file? I'm assuming certain cpp options are included so that ROMS can get enough information from SWAN rather than requiring its own forcing file. An alternative I'm considering is creating a dummy ocean forcing file, but I am open to suggestions.

Thank you! Liz

erholz commented 2 years ago

After some great help from Tarandeep, I've been able to set up a basic ROMS+SWAN run with these flags:

define ROMS_MODEL

define SWAN_MODEL

define MCT_LIB

define SOLVE3D

define UV_LOGDRAG

define MIX_S_UV

define SPLINES_VVISC

define SPLINES_VDIFF

define UV_VIS2

define DJ_GRADPS

define TS_MPDATA

define UV_ADV

define SOLVE3D

define SALINITY

define WEC_VF

define WDISS_WAVEMOD

define UV_KIRBY

define GLS_MIXING

if defined GLS_MIXING

define KANTHA_CLAYSON

define N2S2_HORAVG

define RI_SPLINES

endif

define MASKING

define WET_DRY

define ANA_M2OBC

define ANA_FSOBC

define ANA_SMFLUX

define ANA_STFLUX

define ANA_BTFLUX

define ANA_SSFLUX

define ANA_BSFLUX

define ANA_SPFLUX

define ANA_BPFLUX

define ANA_INITIAL

define DIAGNOSTICS_UV