Application Set-up

From WikiROMS
Jump to navigationJump to search

User Reference Guide

New users to ROMS should read the Getting Started guide.

For information on the ROMS algorithms and internal workings of the code see the Technical Reference.

Most users configuring an application will typically edit only the following files:

makefile

The makefile is altered only occasionally when the user wishes to change from serial to parallel execution, or change the default compiler option.

The most common change to the default (compile for serial execution) is to activate parallel execution by entering either:

     MPI := on

or

     OPENMP := on

See Compiling and Linking for detailed help.

Options

Code options that must be set prior to compilation are set in cppdefs.h. These include algorithm choices (e.g. advection and turbulence closure schemes), boundary conditions, output options (averages, diagnostics, stations, floats), and application modules (biology, sediments).

See C_Preprocessor for an overview on how the C-Preprocessor interprets the syntax of cppdefs.h file. A complete list of options is provided at Options.

ocean.in

The ocean.in file is used to set many parameter values that can be altered without recompiling. In serial execution, ocean.in is read from the UNIX standard input. In parallel execution using MPI, the ocean.in file is processed in parallel by all threads so the usage syntax is different. See for guidance.

Other input files read when certain application options are activated are:

stations.in

floats.in

biology.in