Post

Visualizzazione dei post da dicembre, 2020

Install the Meso-NH model in a nutshell

1. Download the tar.gz archive from the official website (http://mesonh.aero.obs-mip.fr/mesonh54/Download) wget http://mesonh.aero.obs-mip.fr/mesonh/dir_open/dir_MESONH/MNH-V5-4-3.tar.gz 2. Copy the archive file in the $HOME directory cp MNH-V5-4-3.tar.gz $HOME/ 3. update the GCC suite (this step is needed only if GCC version is less than 6.X) scl enable devtoolset-6 bash 4. untar the model archive file cd $HOME/ tar -zxf MNH-V5-4-3.tar.gz 5. export environmental variables export ARCH=LXgfortran export VER_MPI=MPIAUTO export OPTLEVEL=O2 that is # Use "gfortran" compiler on LX=Linux Platform # Use MPI with compiler wrapper 'mpif90', for computer having this wrapper installed # Compile in O2, 4 times faster then DEBUG, but less error checks 6. fix the bug in routine latlon_to_xy.f90 (if needed) vim $HOME/MNH-V5-4-3/src/MNH/ latlon_to_xy .f90 and add the following line : USE MODE_POS, ONLY: POSNAM after this line USE MODE_MODELN_HANDLER,   ONLY: GOTO_MODEL 7. cd src dire