Negative value in initial netcdf file

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
tony1230
Posts: 87
Joined: Wed Mar 31, 2010 3:29 pm
Location: SKLEC,ECNU,Shanghai,China

Negative value in initial netcdf file

#1 Unread post by tony1230 »

Hi,

1. Can the ROMS now tolerant negative values? Primary for temperature in cold winter in initial condition.

2. Why the ROMS always produces negative values to biology variables like NH4,NO3, etc.(under some kind of conditions, also to salinity, say if i add river point sources)?

Thank you and welcome any comments.

- steve

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

Re: Negative value in initial netcdf file

#2 Unread post by kate »

ROMS can handle negative temperatures, no problem. Temperatures can get down around -2C before water will freeze at typical oceanic salinities.

ROMS will produce tracer values outside the initial range through the advection operation. For salinity this can cause troubles for the equation of state so there is now this code:

Code: Select all

            Tt=MAX(-2.5_r8,t(i,j,k,nrhs,itemp))
            Tt=MIN(40.0_r8,Tt)
#  ifdef SALINITY
            Ts=MAX(0.0_r8,t(i,j,k,nrhs,isalt))
            Ts=MIN(100.0_r8,Ts)
I see we have a limiter on the temperature too. Limiters can also be applied to bio tracers to keep things well-behaved.

Post Reply