Problem about executing the oceanG binary

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
pengjack
Posts: 6
Joined: Sat Mar 09, 2013 5:54 pm
Location: Dalian Naval Academy

Problem about executing the oceanG binary

#1 Unread post by pengjack »

I tested the build.bash according to the wiki ROMS webpage about "Installing and Running ROMS for First Time Users", the compiling has been finished without error and the binary file ‘ocenG’ been generated. However, when I executed the oceanG binary, it did not type standard output. The log file is displayed as follows:
***********************************************************
Model Input Parameters: ROMS/TOMS version 3.6
Friday - April 12, 2013 - 4:05:48 PM
-----------------------------------------------------------------------------
MOD_NCPARAM - Unable to open variable information file:
ROMS/External/varinfo.dat
Default file is located in source directory.
***********************************************************

After I used the MPI, the log file contained not only text words but also binaries. The text is showed as below:
***********************************************************
Model Input Parameters: ROMS/TOMS version 3.6
Friday - April 12, 2013 - 4:01:02 PM
-----------------------------------------------------------------------------
INP_PAR - Unable to open ROMS/TOMS input script file.
In distributed-memory applications, the input
script file is processed in parallel. The Unix
routine GETARG is used to get script file name.
For example, in MPI applications make sure that
command line is something like:
mpirun -np 4 ocean ocean.in
and not
mpirun -np 4 ocean < ocean.in
Elapsed CPU time (seconds):
Analytical header files used:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

ROMS/TOMS - Input error ............. exit_flag: 2
ERROR: Abnormal termination: NetCDF INPUT.
REASON: No error
***********************************************************

Has anyone met similar problems? Could you tell me what was the matter?
Please help me. Any help will be highly appreciated!

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

Re: Problem about executing the oceanG binary

#2 Unread post by kate »

ROMS is actually telling you exactly what the problem is:
pengjack wrote: MOD_NCPARAM - Unable to open variable information file:
ROMS/External/varinfo.dat
Default file is located in source directory.
***********************************************************
You need to copy the varinfo.dat file from the source directory to your run directory and tell the ocean.in file where you put it - it's right near the top of ocean.in.
INP_PAR - Unable to open ROMS/TOMS input script file.
In distributed-memory applications, the input
script file is processed in parallel. The Unix
routine GETARG is used to get script file name.
For example, in MPI applications make sure that
command line is something like:
mpirun -np 4 ocean ocean.in
and not
mpirun -np 4 ocean < ocean.in
What it said.. The syntax for running roms in MPI is "mpirun -np 4 oceanM ocean.in".

pengjack
Posts: 6
Joined: Sat Mar 09, 2013 5:54 pm
Location: Dalian Naval Academy

Re: Problem about executing the oceanG binary

#3 Unread post by pengjack »

Thanks Kate very much!
I have solved the first problem. The second one did not solved because my computer seemed not to support MPI.

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

Re: Problem about executing the oceanG binary

#4 Unread post by kate »

You don't have to run in parallel, but you would have to recompile for serial processing. There's a USE_MPI flag for compiling - how did you set it? If it was "on" and the compile worked, your system does have MPI. Is there someone you can ask how to run jobs on your system?

Post Reply