Compiling ROMS error

Discussion of how to use ROMS on different regional and basin scale applications.

Moderators: arango, robertson

Post Reply
Message
Author
michaelkwamebiney
Posts: 5
Joined: Wed Aug 01, 2018 4:04 pm
Location: University of Ghana

Compiling ROMS error

#1 Unread post by michaelkwamebiney »

I have been able to compile the upwelling test case and i had an executable called oceanM
But when i try to run it on a single processor i get the following error. And im also wondering why i am not getting the oceanS executable file.
Here is the error message i got

Model Input Parameters: ROMS/TOMS version 3.7
Tuesday - September 11, 2018 - 12:39:05 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

Found Error: 02 Line: 111 Source: ROMS/Drivers/nl_ocean.h

Elapsed CPU time (seconds):


Analytical header files used:

Found Error: 02 Line: 350 Source: ROMS/Utility/close_io.F

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


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

jcwarner
Posts: 1172
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: Compiling ROMS error

#2 Unread post by jcwarner »

if you set
export USE_MPI=on # distributed-memory parallelism
export USE_MPIF90= # compile with mpif90 script
export USE_OpenMP= # shared-memory parallelism
or
export USE_MPI=on # distributed-memory parallelism
export USE_MPIF90=on # compile with mpif90 script
export USE_OpenMP= # shared-memory parallelism
then you will get an oceanM


this will give you an oceanO
export USE_MPI= # distributed-memory parallelism
export USE_MPIF90= # compile with mpif90 script
export USE_OpenMP=on # shared-memory parallelism


if you do this:
export USE_MPI= # distributed-memory parallelism
export USE_MPIF90= # compile with mpif90 script
export USE_OpenMP= # shared-memory parallelism
you will get an oceanS.

michaelkwamebiney
Posts: 5
Joined: Wed Aug 01, 2018 4:04 pm
Location: University of Ghana

Re: Compiling ROMS error

#3 Unread post by michaelkwamebiney »

Thank you very much. Problem solved

Post Reply