unable to define variable

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
angelolemos
Posts: 34
Joined: Wed Mar 11, 2009 4:24 pm
Location: UFES

unable to define variable

#1 Unread post by angelolemos »

Hi everyone,

I am having problems running my application when I increase the input file number.
I knwo there is a limit (viewtopic.php?f=14&t=4323&p=16638&hilit ... mit#p16638), and I have fixed that question changing the Cval dimension in the files:

/ROMS/Utility/read_phypar.F
/ROMS/Utility/inp_par.F

from 200 to 1000.

Now, there seems to be some limit to the output files variables.
My problem is:

STEP Day HH:MM:SS KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME
C => (i,j,k) Cu Cv Cw Max Speed

0 3196 00:00:00 4.550954E-03 1.923997E+04 1.923997E+04 3.711040E+15
(087,092,40) 3.843846E-02 3.070066E-02 0.000000E+00 8.768757E-01
DEF_HIS - creating history file, Grid 01: ./output/ocean_his_0001.nc

DEF_VAR - unable to define variable: h
in NetCDF file: ./output/ocean_his_0001.nc

So, when I change my ocean_river.in from:

! Input/Output parameters.

NRREC == 0
LcycleRST == F
NRST == 3600
NSTA == 15
NFLT == 1
NINFO == 1

! Output history, average, diagnostic files parameters.

LDEFOUT == T
NHIS == 360
NDEFHIS == 360

NTSAVG == 1
NAVG == 360
NDEFAVG == 360
NTSDIA == 30
NDIA == 0
NDEFDIA == 0


to:


! Input/Output parameters.

NRREC == 0
LcycleRST == F
NRST == 0
NSTA == 15
NFLT == 1
NINFO == 1

! Output history, average, diagnostic files parameters.

LDEFOUT == T
NHIS == 0
NDEFHIS == 0

NTSAVG == 1
NAVG == 360
NDEFAVG == 360
NTSDIA == 30
NDIA == 0
NDEFDIA == 0

The application works, but without his and rst files.
Checking the forum I found almost the some problem (viewtopic.php?f=14&t=3749&hilit=unable+ ... ean_his.nc). I tryied the solution modifying the file def_info.F:

from:

character (len=1024) :: string

to:

character (len=3072) :: string

Nothing happened.
Someone can point me in the right direction?

Thank you.

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

Re: unable to define variable

#2 Unread post by kate »

You've got a different sort of problem and I don't immediately know what it is. If you don't have sediments turned on, h is the first 2-D field being defined in def_info.

angelolemos
Posts: 34
Joined: Wed Mar 11, 2009 4:24 pm
Location: UFES

Re: unable to define variable

#3 Unread post by angelolemos »

Hi Kate,

I followed your suggestion in the previous post and my problem was solved when I changed:

from: character (len=1024) :: string

to: character (len=4096) :: string

And after I ran the application again: ./build.bash -f and mpirun -np 54 ./oceanM ocean_river.in.

Thank you.

Post Reply