Seamount test

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
WatanabeGil
Posts: 2
Joined: Tue Aug 03, 2010 2:27 am
Location: UERJ

Seamount test

#1 Unread post by WatanabeGil »

Hi all,

I'm having problems compiling the seamount test case.
I'm having the following error:

ROMS/Bin/cpp_clean /home/gilbertoow/Projetos/seamount/Build/mod_sources.f90
/usr/bin/cpp -P -traditional -DLINUX -DI686 -DIFORT -D'ROOT_DIR="/home/gilbertoow/src"' -DSEAMOUNT -D'HEADER="seamount.h"' -D'ROMS_HEADER="seamount.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/gilbertoow/src/ROMS/Functionals"' -D'SVN_REV=""' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/gilbertoow/src/ROMS/Include"' ROMS/Modules/mod_netcdf.F > /home/gilbertoow/Projetos/seamount/Build/mod_netcdf.f90
ROMS/Bin/cpp_clean /home/gilbertoow/Projetos/seamount/Build/mod_netcdf.f90
/usr/bin/cpp -P -traditional -DLINUX -DI686 -DIFORT -D'ROOT_DIR="/home/gilbertoow/src"' -DSEAMOUNT -D'HEADER="seamount.h"' -D'ROMS_HEADER="seamount.h"' -DNestedGrids=1 -D'ANALYTICAL_DIR="/home/gilbertoow/src/ROMS/Functionals"' -D'SVN_REV=""' -IROMS/Include -IROMS/Nonlinear -IROMS/Nonlinear/Biology -IROMS/Nonlinear/Sediment -IROMS/Utility -IROMS/Drivers -IROMS/Functionals -IMaster -ICompilers -D'HEADER_DIR="/home/gilbertoow/src/ROMS/Include"' ROMS/Utility/strings.F > /home/gilbertoow/Projetos/seamount/Build/strings.f90
ROMS/Bin/cpp_clean /home/gilbertoow/Projetos/seamount/Build/strings.f90
cd /home/gilbertoow/Projetos/seamount/Build; /usr/local/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -g -check uninit -ftrapuv -traceback -free strings.f90
cd /home/gilbertoow/Projetos/seamount/Build; /usr/local/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -g -check uninit -ftrapuv -traceback -free mod_netcdf.f90
cd /home/gilbertoow/Projetos/seamount/Build; /usr/local/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -g -check uninit -ftrapuv -traceback -free mod_sources.f90
cd /home/gilbertoow/Projetos/seamount/Build; /usr/local/intel/fc/9.1.043/bin/ifort -c -heap-arrays -fp-model precise -g -check uninit -ftrapuv -traceback -free analytical.f90
fortcom: Error: analytical.f90, line 595: This name does not have a type, and must have an explicit type. [YSIZE]
val2=(yr(i,j)-0.5_r8*Ysize)/40000.0_r8
-------------------------------^
compilation aborted for analytical.f90 (code 1)
make: ** [/home/gilbertoow/Projetos/seamount/Build/analytical.o] Erro 1

thanks

Gil

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

Re: Seamount test

#2 Unread post by kate »

It should be Esize, not Ysize. Try changing it and recompiling.

WatanabeGil
Posts: 2
Joined: Tue Aug 03, 2010 2:27 am
Location: UERJ

Re: Seamount test

#3 Unread post by WatanabeGil »

Thanks a lot Kate!

I had compiled it sucessfully.

Now I got a problem running the executable oceanG.
I got this error:

NL ROMS/TOMS: started time-stepping: (Grid: 01 TimeSteps: 00000001 - 00259200)

STEP Day HH:MM:SS KINETIC_ENRG POTEN_ENRG TOTAL_ENRG NET_VOLUME

0 0 00:00:00 0.000000E+00 2.409582E+04 2.409582E+04 4.893805E+14
ANA_DIAG - unable to open output file: ROMS/External/MyFile.dat

Elapsed CPU time (seconds):

Thread # 0 CPU: 0.168
Total: 0.168

Nonlinear model elapsed time profile:

Initialization ................................... 0.040 (23.8099 %)
Computation of global information integrals ...... 0.008 ( 4.7616 %)
2D/3D coupling, vertical metrics ................. 0.004 ( 2.3814 %)
Omega vertical velocity .......................... 0.004 ( 2.3808 %)
Equation of state for seawater ................... 0.008 ( 4.7622 %)
Total: 0.064 38.0959

All percentages are with respect to total time = 0.168

ROMS/TOMS - Output NetCDF summary for Grid 01:

Analytical header files used:

/home/gilbertoow/Projetos/seamount/ana_btflux.h
/home/gilbertoow/Projetos/seamount/ana_diag.h
/home/gilbertoow/Projetos/seamount/ana_grid.h
/home/gilbertoow/Projetos/seamount/ana_initial.h
/home/gilbertoow/Projetos/seamount/ana_smflux.h
/home/gilbertoow/Projetos/seamount/ana_stflux.h

ROMS/TOMS - Input error ............. exit_flag: 2


ERROR: Abnormal termination: NetCDF INPUT.
REASON: No error

However, if I set #undef on ANA_DIAG it runs normaly. Why ? Thanks.

Gil

salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

Re: Seamount test

#4 Unread post by salik »

WatanabeGil wrote:...
ANA_DIAG - unable to open output file: ROMS/External/MyFile.dat

...

However, if I set #undef on ANA_DIAG it runs normaly. Why ? Thanks.

Gil
I am getting this same error trying to run the seamount test case. I have had no issues running other applications.

I don't see a MyFile.dat in the specified directory, but I don't think this should be a problem, since e.g. upwelling runs fine.

As for WatanabeGil, it helps to undef ANA_DIAG, but is there a known reason for this error?

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

Re: Seamount test

#5 Unread post by kate »

This is a new one to me, so I check the source code. There's a ROMS/Functionals/ana_diag.h which only has code for the SEAMOUNT case. In there, it wants to open a file whose name is in the variable USRname. This name is set in ocean_seamount.in to be ROMS/External/MyFile.dat, but the open will fail if you don't have the ROMS/External directory under the run directory. You can always change the location of the output file by editing the ocean.in file.

salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

Re: Seamount test

#6 Unread post by salik »

Thank you Kate. I figured that might be the problem, but as I said above, I couldn't find a MyFile.dat in ROMS/External/, so I thought there might be another issue.
In any case, it works now, after I added the full path to my ROMS source, so I guess that's a qualified success :)

Post Reply