4. Compilation

To compile Meso-NH’s package with OASIS (oasis3-mct_5.0) and the toy model (toy_2.0), do :

cd src/

export VER_MPI=MPIAUTO
export VER_CDF=CDFAUTO
export VER_OASIS=OASISAUTO

./configure
. ../conf/profile_mesonh
make
make installmaster

Note

  • By setting VER_CDF=CDFAUTO and VER_OASIS=OASISAUTO, you chose to install and compile NetCDF and OASIS libraries provided in the Meso-NH’s package. Toy model is also installed and compiled when OASISAUTO is defined. These libraries are located in src/LIB directory.

  • ./configure command extracts tar.gz archives. NetCDF and OASIS libraries and the toy model are compiled at the beginning of the Meso-NH compilation (during make).

  • You can use your own NETCDF and OASIS libraries by setting VER_CDF=CDFPERSO and VER_OASIS=OASISPERSO and define NETCDF_CONFIG and OASISDIR environment variables. NETCDF_CONFIG must point to the nf-config file. OASISDIR must point to the OASIS build directory.

  • The make command calls different files: Makefile (compile libraries), Rules.$ARCH$(F).mk (options of compilation), Makefile.MESONH.mk (link to the compiled libraries)