Requirements

To run CMEM you need:
- Fortran     # e.g. gfortran (version >= 7.3.0):  https://gcc.gnu.org/fortran/
- GRIBAPI   #https://confluence.ecmwf.int/display/ECC/What+is+ecCodes
- NetCDF    # https://www.unidata.ucar.edu/software/netcdf


How to compile

$ tar -xzvf cmem_v6.1.tar.gz
$ cd cmem_v6.1/source

Require to update the Makefile to your system.
e.g. FORTRAN_COMPILER, GRIBAPI_* and NETCDF_* in Makefile

$ make   # Compile CMEM


Note:

If you want remove NetCDF and GRIBAPI options (e.g. because not installed on your computer):

1: in source/cmem_set_var.F90 and source/cmem_end.F90:
comment or remove all the lines that contain the comment 'netcdfcase' and/or 'gribapicase'.

2: in source/Makefile:
remove gribapi and/or netcdf routines and libraries.
(sample: source/Makefile.not_grib_netcdf)


CMEM How to use

CMEM