Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Thu Aug 16, 2018 4:31 am




Post new topic Reply to topic  [ 6 posts ] 

All times are UTC

Author Message
 Post subject: Seamount test
PostPosted: Thu Sep 30, 2010 6:18 pm 
Offline

Joined: Tue Aug 03, 2010 2:27 am
Posts: 2
Location: UERJ
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Seamount test
PostPosted: Fri Oct 01, 2010 6:55 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3485
Location: IMS/UAF, USA
It should be Esize, not Ysize. Try changing it and recompiling.


Top
 Profile  
Reply with quote  
 Post subject: Re: Seamount test
PostPosted: Fri Oct 01, 2010 9:45 pm 
Offline

Joined: Tue Aug 03, 2010 2:27 am
Posts: 2
Location: UERJ
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Seamount test
PostPosted: Tue May 23, 2017 7:51 am 
Offline

Joined: Tue Jan 14, 2014 3:02 pm
Posts: 16
Location: Geological Survey of Denmark and Greenland
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Seamount test
PostPosted: Tue May 23, 2017 4:45 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3485
Location: IMS/UAF, USA
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Seamount test
PostPosted: Wed May 24, 2017 9:17 am 
Offline

Joined: Tue Jan 14, 2014 3:02 pm
Posts: 16
Location: Geological Survey of Denmark and Greenland
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 :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group