Installation

You have the flexibility to install models in any directory you prefer. However, I recommend dedicating a specific directory for your case study, particularly if you plan to test new versions of models, compilers, or libraries.

Note

The Installation and Compilation steps must be performed on the machines where you will run the simulations

Get models template

To get the models template directory, do :

git clone https://github.com/JorisPianezze/models_tmpl_for_mesonh_ww3_croco_coupling.git

Rename the directory into your own case study :

mv models_tmpl_for_mesonh_ww3_croco_coupling models_YOURCASESTUDY

This coupling system has been tested on several machines. First you need to verify your maching with

cd models_YOURCASESTUDY
./create_environment.sh

If your machine has already been tested you need to have a script environment.sh inside models_YOURCASESTUDY directory.

Note

  • This environment has already been tested in your machine.

  • Different scripts will call environment.sh file. You also have to use this script when you will compile and run models.

NetCDF

First, you need to download and install NetCDF library. To download tar.gz files, do :

cd libraries
./download_aec_hdf_netcdf_libraries.sh

You need to have 4 new tar.gz files in the libraries directory.

OASIS

To download OASIS you have to set download_oasis=true in models_YOURCASESTUDY/download_oasis_mesonh_ww3_croco_models.sh and then execute this file :

cd models_YOURCASESTUDY
./download_oasis_mesonh_ww3_croco_models.sh

Meso-NH

To download Meso-NH you have to set download_mesonh=true in models_YOURCASESTUDY/download_oasis_mesonh_ww3_croco_models.sh and then execute this file :

cd models_YOURCASESTUDY
./download_oasis_mesonh_ww3_croco_models.sh

Note

This version of Meso-NH already contains NetCDF and oasis3-mct_5.0 libraries and you can compile it automatically when you compile Meso-NH but I recommend to compile NETCDF and OASIS separately to be indepedent of Meso-NH.

WW3

To download WW3 you have to set download_ww3=true in models_YOURCASESTUDY/download_oasis_mesonh_ww3_croco_models.sh and then execute this file :

cd models_YOURCASESTUDY
./download_oasis_mesonh_ww3_croco_models.sh

CROCO

To download CROCO you have to set download_croco=true in models_YOURCASESTUDY/download_oasis_mesonh_ww3_croco_models.sh and then execute this file :

cd models_YOURCASESTUDY
./download_oasis_mesonh_ww3_croco_models.sh

Check files and directories tree

At the end of this section, you need to have following script and directories :

models_YOURCASESTUDY/
├── croco-v2.1.0
├── environment.sh
├── libraries
│   ├── hdf5-1.14.6.tar.gz
│   ├── libaec-1.1.3.tar.gz
│   ├── netcdf-c-4.9.3.tar.gz
│   ├── netcdf-fortran-4.6.1.tar.gz
├── MNH-V5-7-2
├── oasis3-mct_5.2
└── WW3-v7.14