Rectangular grid: Compiler flag and NetCDF grid

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
modzy

Rectangular grid: Compiler flag and NetCDF grid

#1 Unread post by modzy »

I tried to run ROMS in "rectangular" mode over a rectangular grid.

1) Setup:
a)In cpp.h: #undef CURVGRID
b)In grid.nc: spherical = "T" ; ! NOT "F"

2) Questions:
a) To be consistent with 1-a, there should be spherical = "F". However, with the 1-b setup, the ROMS codes executed without complaining for the inconsistency. Why?

3) FYI:
a) In the output station, and history files, there is spherical = "T".
b) Here is part of ncdump of history file (NOTE that it doesn't contain 'CURVGRID'!)
:CPP_options = "GOMOFS_NO_MET, ADD_FSOBC, ADD_M2OBC, ANA_BSFLUX, ANA_BTFLUX, ANA_SMFLUX, ANA_SSFLUX, ANA_STFLUX, ASSUMED_SHAPE, DIFF_GRID, DJ_GRADPS, DOUBLE_PRECISION, FSOBC_REDUCED, GLS_MIXING, LIMIT_BSTRESS, KANTHA_CLAYSON, MASKING, MIX_GEO_TS, MIX_S_UV, MPI, NONLINEAR, NONLIN_EOS, N2S2_HORAVG, OUT_DOUBLE, PERFECT_RESTART, POWER_LAW, PROFILE, K_GSCHEME, RADIATION_2D, !RST_SINGLE, SALINITY, SOLVE3D, SPLINES, SSH_TIDES, STATIONS, TS_A4HADVECTION, TS_A4VADVECTION, TS_DIF2, UV_ADV, UV_COR, UV_U3HADVECTION, UV_C4VADVECTION, UV_QDRAG, UV_TIDES, UV_VIS2, VAR_RHO_2D, VISC_GRID, WET_DRY" ;

Thanks!

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

Re: Rectangular grid: Compiler flag and NetCDF grid

#2 Unread post by kate »

These two flags actually mean quite different things:

* CURVGRID means to compute the extra advection terms required on a curvilinear grid where dx varies in y and/or dy varies in x.
* spherical=T means to write out the grid lat,lon rather than the grid x,y.

modzy

Re: Rectangular grid: Compiler flag and NetCDF grid

#3 Unread post by modzy »

Thanks, Kate! It's very helpful!

Post Reply