Skip to content
Alexandra Bozec edited this page Apr 29, 2019 · 9 revisions

Welcome to the HYCOM-src wiki!

The Hybrid Coordinate Ocean Model (HYCOM) source code is now available through the GitHub platform. To have access to the latest version (currently 2.3.00):
git clone --recursive https://github.com/HYCOM/HYCOM-src.git src_2.3.00_mpi

See the What's new in 2.3.00 wiki page for the most significant changes to the code since 2.2.98.


Naming Convention

HYCOM can be hardwired at compile time for a particular region, but it is now more usual to configure it to allocate memory at run time, i.e. as a relo executable. In fact, all the config/ examples are for relo setups. When the RELO macro is set, arrays are allocated at run time and the defaults for the small number of user changeable parameters in mod_dimensions.F90 are usually appropriate. The most commonly edited parameter in mod_dimensions.F90 is mxthrd which might need changing when parallelizing with OpenMP (TYPE=omp or TYPE=ompi), see the OpenMP wiki page. If you want to use static compile-time arrays, dimensions.h will need customizing - see the Defining Domain Dimensions wiki page for more details.

There is still a compile time distinction between global tripole grids (with a special halo exchange on the "north" domain edge), and the equation of state is chosen at compile time to improve performance. If you only have one domain and one equation of state you can call your directory anything you like (e.g. src_2.3.00_mpi). If you have multiple domains, one approach is to compile in the generic RELO and/or RELO_GLB "region" directory and then softlink from the actual region directories:

hycom/RELO/src_2.3.00-7tsig0_mpi
hycom/RELO/src_2.3.00-17tsig2_mpi
hycom/GOMb0.08/src_2.3.00-17tsig2_mpi -> ../RELO/src_2.3.00-17tsig2_mpi

hycom/RELO_GLB/src_2.3.00-17tsig2_mpi
hycom/GLBt0.72/src_2.3.00-17tsig2_mpi -> ../RELO_GLB/src_2.3.00-17tsig2_mpi

The actual region source code directores can skip the "-XtsigY" part of the name if this never changes for that domain.

Then edit and run Make.csh for your setup, see Compilation (Make) wiki page for more details.

Clone this wiki locally