Skip to content

AI4EarthLab/GOMO

Repository files navigation

GOMO

Generalized Operator Modelling of the Ocean (GOMO) is a three-dimensional ocean model based on OpenArray which is a simple operator library for the decoupling of ocean modelling and parallel computing.

The fundamental equations and algorithms of GOMO are derived from POM2k (Blumberg and Mellor, 1987). The details of the continuous governing equations, the corresponding operator expression form and the descriptions of all the variables used in GOMO are listed in the ./docs folder.

GOMO is composed of 42 Fortran files (.F90), a header file (.h), and a single namelist file (.txt). Pre-processing processing package written in Matlab is located in ./pre. You can use the package to produce the input file for the ideal test--seamount. The default input file seamount65_49_21.nc is located at the directory ./bin/data.

For more details, please refer to the paper (https://www.geosci-model-dev-discuss.net/gmd-2019-28/) and the simple user mannual of OpenArray located at ./docs.

Requirments

  • PnetCDF (version 1.7.0 or higher).
  • OpenArray.

Compile

If the installation of OpenArray is done, it is fairly easy to compile GOMO, the basic steps are as follows:

(a) Download GOMO from GitHub:

  wget https://github.com/hxmhuang/GOMO/archive/master.zip  
  unzip master.zip

(b) Set paths to PnetCDF and OpenArray, if PnetCDF and OpenArray are installed in the default directory, ${HOME}/install.

  export OPENARRAY_DIR=${HOME}/install 
  export PNETCDF_DIR=${HOME}/install 

(c) Make. Please use the same compilers to build GOMO, PnetCDF and OpenArray.
For GNU compiler and mpich or openmpi, then:

  ./configure MPICC=mpicc MPICXX=mpicxx MPIF77=mpif77 MPIF90=mpif90
  make  

For intel compiler, then:

  ./configure MPICC=mpiicc MPICXX=mpiicpc MPIF77=mpiifort MPIF90=mpiifort
  make  

Run GOMO

After compiling, the executable file ./bin/GOMO will be generated. Within the directory ./bin where GOMO and config.txt files exist, run the ideal case:

  ./GOMO   

or

  mpirun -np N ./GOMO   

About

Generalized Operator Modelling of the Ocean (GOMO)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors