Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • mesonh/mesonh-code
  • quentin.rodier/mesonh-code-fork
  • benoit.vie/mesonh-code
  • joris.pianezze/mesonh-code
  • 8qq4g5s7/mesonh-code
  • jean.baptiste.filippi/meso-nh-fire-code
  • fdl68d9p/mesonh-code-sophia
  • jean.wurtz/mesonh-code
8 results
Select Git revision
Show changes
Commits on Source (4586)
Showing
with 1430 additions and 351 deletions
* text=auto
*.tar filter=lfs diff=lfs merge=lfs -crlf
*.tar.gz filter=lfs diff=lfs merge=lfs -crlf
*/ecmwf.OD* filter=lfs diff=lfs merge=lfs -crlf
*CLEAN4_ops filter=lfs diff=lfs merge=lfs -crlf
*arpifs.* filter=lfs diff=lfs merge=lfs -crlf
*dasucl4_ops filter=lfs diff=lfs merge=lfs -crlf
bin/gmake-3.80 filter=lfs diff=lfs merge=lfs -crlf
bin_tools/X86/* filter=lfs diff=lfs merge=lfs -crlf
bin_tools/X86_64/* filter=lfs diff=lfs merge=lfs -crlf
exe/[a-zA-Z]* filter=lfs diff=lfs merge=lfs -crlf
# Ignore the content of pack directory but not the directory itself
/pack/**
!/pack/.gitkeep
# Ignore the content of mnh_expand directory but not the directory itself
/mnh_expand/**
!/mnh_expand/.gitkeep
# Ignore the content of testprogs_data but not the directory itself
/testprogs_data/ice_adjust/**
/testprogs_data/rain_ice/**
!/testprogs_data/ice_adjust/.gitkeep
!/testprogs_data/rain_ice/.gitkeep
# Ignore vim swapp files
.*.swp
conf/profile_mesonh
conf/profile_mesonh-*
exe/*
MY_RUN/INTEGRATION_CASES/**/*.des
MY_RUN/INTEGRATION_CASES/**/*.dir
MY_RUN/INTEGRATION_CASES/**/*.hdr
MY_RUN/INTEGRATION_CASES/**/*.nc
MY_RUN/INTEGRATION_CASES/**/ecmwf.OD.????????.??
MY_RUN/INTEGRATION_CASES/**/file_for_xtransfer
MY_RUN/INTEGRATION_CASES/**/OUTPUT_LISTING*
MY_RUN/INTEGRATION_CASES/**/PRESSURE
MY_RUN/KTEST/*/*/*.des
MY_RUN/KTEST/*/*/*.lfi
MY_RUN/KTEST/*/*/*.nc
MY_RUN/KTEST/*/*/ecmwf.OD.????????.??
MY_RUN/KTEST/*/*/file_for_xtransfer
MY_RUN/KTEST/*/*/gtopo30.*
MY_RUN/KTEST/*/*/CLAY_HWSD_MOY.*
MY_RUN/KTEST/*/*/DATA?1
MY_RUN/KTEST/*/*/ECOCLIMAP_v2.0.*
MY_RUN/KTEST/*/*/FICJD
MY_RUN/KTEST/*/*/LISTING_DIA
MY_RUN/KTEST/*/*/OUT_DIA
MY_RUN/KTEST/*/*/OUTPUT_LISTING*
MY_RUN/KTEST/*/*/PRESSURE
MY_RUN/KTEST/*/*/REMAP*FFT*
MY_RUN/KTEST/*/*/SAND_HWSD_MOY.*
MY_RUN/KTEST/*/*/pipe_name
MY_RUN/KTEST/*/*/__pycache__
MY_RUN/KTEST/*/*/misc_functions.py
MY_RUN/KTEST/*/*/Panel_Plot.py
MY_RUN/KTEST/*/*/read_MNHfile.py
MY_RUN/KTEST/*/*/tutorial_readme
MY_RUN/KTEST/*/*/*.png
MY_RUN/KTEST/*/*/*.pdf
MY_RUN/KTEST/007_16janvier/012_spectre/spectra_16JAN.1.12B18.001_*
MY_RUN/KTEST/009_ICARTT/001_pgd1/*.asc
MY_RUN/KTEST/009_ICARTT/002_arp2lfi/ecmwf.OD.20040810.18-V2
MY_RUN/KTEST/009_ICARTT/002_arp2lfi/mocage.GLOB22.20040810.18
MY_RUN/KTEST/9??_*
pub/FILEPP/filepp*
!pub/FILEPP/filepp*.tar.gz
pub/FILEPP/FILEPP*
pub/FILEPP/MNH_Expand_*
!pub/FILEPP/MNH_EXPAND_*.tar.gz
src/dir_obj-*
src/LIB/eccodes*
!src/LIB/eccodes*.tar.gz
src/LIB/grib_api*
!src/LIB/grib_api*.tar.gz
src/LIB/hdf5*
!src/LIB/hdf5*.tar.gz
src/LIB/libaec*
!src/LIB/libaec*.tar.gz
src/LIB/netcdf*
!src/LIB/netcdf*.tar.gz
src/LIB/MEGAN*
src/LIB/oasis3-mct*
!src/LIB/oasis3-mct*.tar.gz
src/LIB/toy*
!src/LIB/toy*.tar.gz
vscode_mod
.DS_Store
*.vts
*.vtu
*.mp4
src/*.eo*
#
# Version of PACKAGE MESONH "Open distribution"
# PACK-MNH-V5-7-2
# DATE : 16/05/2025
# VERSION : MESONH MASDEV5_7 + BUG-2
#
# MAP
#
# 0) TWO WAYS OF DOWNLOADING MESONH
# I-A) DOWNLOAD VIA THE WEB MESONH HOME PAGE
# I-B) DOWNLOAD VIA GIT ANONYMOUS
# II) CONFIGURING THE MESONH PACKAGE
# III) COMPILING/INSTALLING THE MESONH PACKAGE ON YOUR LINUX COMPUTER
# IV) RUN SOME "SMALL KTEST" EXAMPLES
# V) RECOMPILING YOUR 'OWN' SOURCES ONLY
# VI) COMPILING/INSTALLING MESONH ON GENCI & ECMWF & METEO & CALMIP COMPUTERS
# VII) "SCANDOLLAR" = SCRIPTING YOUR OWN PROCEDURES
#
# VIII) TROUBLE-SHOOTING
# a) Segmentation violation -> problem of "stack size" limit
# b) Compiler bug with "ifort 10.0.xxx"
#
# IX) OPTIONAL COMPILATION
# a) MNH_FOREFIRE for forefire runs ( external package needed )
# b) MNH_RTTOV for optional radiative computation
# c) MNH_ECRAD for optional compilation of new ECRAD radiative library from ECMWF
# d) MNH_MEGAN for optional compilation of MEGAN
# e) cleaning previous compiled version
#
#
# NEW since MNH-56X : For conda package for graphic output in test-case examples , read
# the 'README_MNH_CONDA' file in this (root) directory
#
#
^L
# 0) TWO WAYS OF DOWNLOADING MESONH
# =================================
#
# MESONH sources and executables
# http://mesonh.aero.obs-mip.fr
# are developed and maintained with the
# Git tools ( https://git-scm.com/ )
#
# There are two ways to download the package of
# MESONH containing :
# - sources
# - makefiles
# - precompile exe
# - graphic tools
# - basic examples
#
# The first way is for VERY BASIC USER OF MESONH
# via a download of a "tar ball" in the WEB site of MESONH
#
# The second way is for USER/DEVELOPER of MESONH
# via the use of Git and an anonymous ssh connection to the Git repository of
# the MESONH package
#
#
# REM: It is now strongly recommended, but not mandatory,
# for all users to use the Git solution, because:
#
# * It's far more easy for us ( support team ) to give you some assistance
# in case of trouble... as Git permits us to know exactly
# what you have changed in the original PACKAGE
#
# * It's much more easy for you to update to the last version...
# or at least see the change made for BUGFIX directly on our
# installation.
#
#
# Following, are presented the two mutually exclusive ways to get the MesoNH
# package:
#
#
^L
# I-A) DOWNLOAD VIA THE WEB MESONH HOME PAGE
# ==========================================
#
# With your preferred web browser go to the MESONH WEB SITE
#
# http://mesonh.aero.obs-mip.fr/mesonh
# ---> Download
#
# or directly
#
# http://mesonh.aero.obs-mip.fr/mesonh/dir_open/dir_MESONH/MNH-V5-7-2.tar.gz
#
# Then untar the file "MNH-V5-7-2.tar.gz" where you want to.
# For example, in your home directory:
#
cd ~
tar xvfz MNH-V5-7-2.tar.gz
#
# Process now to the chapter to configure the MesoNH package.
#
# => II) CONFIGURING THE MESONH PACKAGE
#
^L
# I-B) DOWNLOAD VIA GIT ANONYMOUS
# ===============================
#
# a) Prerequisites
# ----------------
#
# In order to clone the Meso-NH git repository that contains sources, compiled
# libraries and binary tools, the git LFS extension is required to handle
# binary (or large) files. So before starting, be sure:
#
# * to have git v1.8.2 or higher installed on your workstation. You can run
# and check with:
git --version
# * to install the git LFS extension (not included by default in the Git
# package):
# - get the linux git-lfs archive from the "Download v1.X.Y (Linux)" link on
# the web page https://git-lfs.github.com/
# - extract the archive and copy the git-lfs binary in your $HOME/bin (the
# provided install.sh script doesn't need to be executed)
# - from any directory, you can now execute:
git lfs install
# that will set up some filters under the name "lfs" in the global Git
# config file ($HOME/.gitconfig)
#
# b) Before cloning
# -----------------
#
# * Download the private key to access the anonymous Meso-NH Git server (read-
# only access) by following the next link:
#
http://mesonh.aero.obs-mip.fr/mesonh57/GitSources?action=AttachFile&do=get&target=anongitmesonh.key
#
# and save the file in your $HOME/.ssh/ directory.
#
# * Change the access permissions of the key with:
#
chmod 600 $HOME/.ssh/anongitmesonh.key
#
# * Copy/paste the following lines and add them in your $HOME/.ssh/config file
# (create the file if it is missing):
#
Host anongit_mesonh
User anongit
IdentityFile ~/.ssh/anongitmesonh.key
Hostname 195.83.22.22
Port 22222
#
# Before cloning the repository, execute:
#
git config --global http.sslverify false
#
# This is necessary to disable the certificate checks because a self-signed
# certificate was used for the LFS server.
#
# c) Cloning the Meso-NH Source repository on the developpement branch MNH-57-branch
# ----------------------------------------------------------------------------------
#
# Finally you can clone the Meso-NH Git repository with the following command:
#
git clone anongit@anongit_mesonh:/gitrepos/MNH-git_open_source-lfs.git -b MNH-57-branch MNH-V5-7-2
#
# that will create the MNH-V5-7-2 directory containing a clone (copy) of the
# Meso-NH package on the remote developpement branch MNH-57-branch
#
#
# d) Checking out a given version of MESONH
# -----------------------------------------
#
# Once the repository is cloned, it's better for you to checkout your own branch
# (by default, you are on HEAD of the MNH-57-branch development branch ).
#
# To create your local branch corresponding to the V5-7-2 version, type:
#
cd MNH-V5-7-2
git checkout -b MYB-MNH-V5-7-2 PACK-MNH-V5-7-2
#
# MYB-MNH-V5-7-2 is the name of the local branch you created
# and
# PACK-MNH-V5-7-2 is the remote/origin tag on which it is based.
#
# The advantage of this way of downloading the package is that in the future
# you could check/update quickly differences with the new version of the
# package without having to download entirely the full package.
#
# Suppose that a new version, for example "PACK-MNH-V5-7-2", is announced.
#
# To see the differences with your working copy, do:
#
git fetch
git diff HEAD PACK-MNH-V5-7-2
#
# To go to the new version, you can, for example, create a new local branch:
#
git checkout -b MYB-MNH-V5-7-2 PACK-MNH-V5-7-2
#
# At any time, you can also check for "uptodate" changes in the Git branch
# dedicated to the MNH57 version before the official release of the "bugN+1"
# bugfix version.
#
git fetch
git diff HEAD MNH-57-branch
#
# And, test this development (not yet official) version by going to this branch:
#
git checkout --track origin/MNH-57-branch
#
# e) Cloning the Meso-NH Documentation repository
#
# In a similar fashion, you can clone the Meso-NH documentation Git repository
# with the following command:
#
git clone anongit@anongit_mesonh:/gitrepos/MNH-DOC.git
#
# that will create the MNH-DOC directory containing the latest LaTeX sources of
# the Meso-NH documentation.
#
# Well, the use of git is not under the scope of this "INSTALL" document...
#
# Now, go to the next chapter
#
# => II) CONFIGURING THE MESONH PACKAGE
#
#
^L
#
# II) CONFIGURING THE MESONH PACKAGE
# ==================================
#
# For the installation process, you could now
# use the "./configure" script like this
#
cd ~/MNH-V5-7-2/src
./configure
. ../conf/profile_mesonh
#
# this will create a configuration file "profile_mesonh" with
# an extension reflecting the different "choices" made automatically
# to match the computer on which you want to install MESONH
#
# WARNING :
# =========
# On GENCI & ECMWF & METEO/CNRM & METEO/DSI computers, the './configure' is tuned to
# identify the computer on which the command is used
# so the good compiler, MPI & netCDF libraries,...
# are automatically chosen
#
# To install this version on one of these machines, go to the chapter
#
# => VI) COMPILING/INSTALLING ON GENCI & ECMWF & METEO COMPUTERS
#
# else follow the guidelines below.
#
# /!\ This is not the case in your "own" personal Linux computer ...
# So is up to you to set the ARCH variable correctly
# ARCH = Fortran compiler to use,
# VER_MPI = version of MPI to use ,
# OPTLEVEL =
# etc ...
# and all the other environnement variables.
#
# Be default, for an unknown computer, you will have:
#
# - the compiler choosen to be "gfortran" => ARCH=LXgfortran
# - the MPI library to be the MPIVIDE => VER_MPI=MPIVIDE
# ( empty MPI library coming with MESONH package = no parallel run possible )
# - the level of optimization for the compiler => OPTLEVEL=DEBUG
# ( for development purpose ,fast compilation & debugging )
#
# SO IF NEEDED:
# ============
# you could change the default FLAG compiler/MPI/optlevel
# like this, for example
export ARCH=LXifort # Use Intel "ifort" compiler on LX=linux Plateform
export VER_MPI=MPIAUTO # Use MPI with compiler wrapper 'mpif90', for computer having this wrapper installed
export OPTLEVEL=O2 # Compile in O2, 4 times faster then DEBUG, but less error checks
./configure
# and then source/load the new generate file
. ../conf/profile_mesonh.LXifort.MNH-V5-7-2.MPIAUTO.O2
#
# REM:
# ====
#
# - Options specific to compiling/architecture, like 'OPTLEVEL' are defined inside the "Rules.${ARCH}.mk" .
#
# - Options specific to library like "mpi"="VER_MPI" or "cdf"="VER_CDF" are defined inside "Makefile.MESONH.mk"
#
# - If needed, for adaptation to your requirements, look inside the files and changes options for your needs.
#
# - On PC-Linux, if needed, look at the "MesonhTEAM Wiki" to know how to compile the OpenMPI library with MESONH:
#
# http://mesonh.aero.obs-mip.fr/teamwiki/MesonhTEAMFAQ/PC_Linux
# --> Compilation of OPEN-MPI
^L
#
# III) COMPILING/INSTALLING THE MESONH PACKAGE ON YOUR LINUX COMPUTER
# ===================================================================
#
# go to the directory "src"
#
cd ~/MNH-V5-7-2/src
#
# if you have not already configured your MESONH environment
# either manually in your interactive session
# or automatically through your .profile (or .bashrc), do:
#
# REM: use the configure file corresponding to your needs, cf. previous chapter
. ../conf/profile_mesonh{use_the_good_version_here}
#
# run the compilation by
#
(g)make
#
# The compilation will take about 20 minutes on modern PC-Linux ...
#
# If you have a multi-processor machine you can speedup
# the compilation, for example on four cores, with:
(g)make -j 4
#
#
# The object files "*.o" & main executables of the "MESONH PACKAGE" :
#
# MESONH , PREP_IDEAL_CASE , PREP_REAL_CASE , etc ...
#
# are compiled in one step and created in the directory
#
# dir_obj-$(ARCH).../MASTER
#
# ( REM: the lib...a is only created and removed at the link phase;
# this allows a parallel compilation of the sources ... )
#
# The exact name of this "dir_obj..." depends on the different environnement
# variables set by the "profile_mesonh...." which you have loaded before the compilation.
#
# This allows by loading different "profile_mesonh.." files to compile in the same
# source/installation directory different versions of MESONH , with different
# compilers, different versions of MPI, different USER sources...
#
#
# To install the new compiled program in the "$SRC_MESONH/exe"
# directory, after compilation, just run
#
make installmaster
#
# The executables with their full name, including $ARCH, compiler,
# MPI and level of optimization, will be linked in the "../exe" directory
#
# REM:
# ---
# The "make installmaster" need to be done only one time by "version".
# If you only change/add source, you have to do "make"
make
#
# IV) RUN SOME "SMALL KTEST" EXAMPLES
# ===================================
#
# After compilation & installation, you could run
# some basic "KTEST" examples from the "src" directory
# by running:
make examples
# or by giving one of the "KTEST" names in
#
# the list "001_2Drelief 002_3Drelief 003_KW78 004_Reunion 007_16janvier"
make 004_Reunion
#
# EXAMPLES USING NCL
# ===================
#
# WITH 2 OPTIONS TO CONVERT FROM LFI TO NETCDF FORMAT
# 1: with extractdia
# 2: with lfi2cdf
# Only for 2 KTEST : 004_Reunion and 007_16janvier
#
make ncl1_examples # if using extractdia
#or
make ncl2_examples # if using lfi2cdf
#
# Or by giving the KTEST name followed by _ncl1 or _ncl2
#
make 004_Reunion_ncl1
#or
make 004_Reunion_ncl2
^L
#
# V) RECOMPILING YOUR OWN SOURCES ONLY
# ====================================
#
# NOW YOU COULD GENERATE AND RECOMPILE YOUR OWN SOURCES ONLY
# ( like BIBUSER in centralised MESONH version )
#
# Suppose you want to create a "MY_MODIF" version ...
#
# Step-1 : prepare your source directory
# ---------------------------------------
#
# Put your own sources in a subdirectory of "${SRC_MESONH}/src" named
#
${SRC_MESONH}/src/MY_MODIF
#
# All subdirectories in "MY_MODIF" will be scanned. So if you want,
# you could make a subdirectory for each component of the MESONH
# Package
#
cp .../mesonh.f90 MY_MODIF/MNH/.
cp .../isba.f90 MY_MODIF/SURFEX/.
#
# /!\ WARNING :
# -------------
# - In this subdirectory, put only fortran source you want to compile !!!
# Don't use it as a trash with old sources file like 'my_source.f90.old'
# or 'tar' files 'mysource.tar' .
# - All 'spirituous' file will confuse the 'make' command.
#
#
# Step-2 : configure/compiling with VER_USER=...
# ----------------------------------------------
#
# - Logout of the current session to be sure to unset all the
# environnement variables loaded with the your 'master 'profile_mesonh'
#
# - Login again and:
#
# - set the variable "VER_USER" with the name of your "USER VERSION",
# - set also the optional ARCH, VER_MPI... you want to use.
#
# and run again the "./configure" command
#export ARCH=...
#export VER_MPI=...
export VER_USER=MY_MODIF
./configure
#
# this will regenerate the "profile-mesonh" file and a copy
# of this with the extent "profile_mesonh...${VER_USER)..."
#
# as before load it & and compile with the command "make user"
. ../conf/profile_mesonh...${VER_USER}...
make user
# this will compile only your sources and the files depending on your sources
# and generate the new executables in your own directory
#
# dir_obj-$(ARCH).../${VER_USER}
#
#
# WARNING :
# ========
# Before compiling your own sources be sure that these ones
# are younger than the "*.o" files of the MASTER directory.
# If any doubt, at any time use the command
#
# touch *.f*
#
# on your sources, and only on yours do that!!!
#
#
# Step-3 : running the examples
# -----------------------------
#
#
# Now if the compilation is OK, you could test this new version with the "make examples".
#
# First, install the new binaries in the '${SRC_MESONH}/exe' with
make installuser
# The "make installuser" needs to be done only one time by "version".
#
# And run the examples. Your version should appear in the name of the used executables.
#
make examples
^L
#
# VI) COMPILING/INSTALLING ON GENCI & ECMWF & METEO & CALMIP COMPUTERS
# ====================================================================
#
# After downloading "exactly" like on "any standalone PC"
# run the "./configure" command :
#
./configure
#
# - If you do not have sufficient space in your "$HOME" directory,
# install the whole package directly on the ${WORKDIR}
# /!\ the name of the WORKDIR differ in the differents computer center
# read the doc , most of them manage disk space throw 'multi-projet' with only one unique login .
#
# WARNING :
# ========
# - Think to do a backup of your installation
# - This space is no "purged" but a "crash disk" could/will
# probably occur !!!
#
cd $WORKDIR
cd MNH-V5-7-2/src
./configure
#
# Due to limitation in time & memory on interactive connection
# in some computer you have to compile the MESONH PACKAGE in batch mode with the different "job_make_mesonh*" files
#
# at IDRIS :
# ---------
#
# - On JEAN-ZAY ( HPE ) the compilation is in interactive :
cd MNH-V5-7-2/src
. ../conf/profile_mesonh-LXifort-R8I4-MNH-V5-7-2-MPIINTEL-O2
make -j16 |& tee error$XYZ
make installmaster
# You could also use the 'compil' partition
sbatch job_make_mesonh_HPE_jeanzay
# - to run the test case examples run
sbatch -A {your_projet}@cpu job_make_examples_BullX_jeanzay
#
#
# at CINES on ADASTRA (BULLX) :
# -------------------------------------------------------
#
# - install the PACKAGE in your $HOME ( default 50Go of quota )
# - Compile in interactive mode ( see IDRIS )
#
# - to run the test case examples run
sbatch job_make_examples_BullX_occigen
#
#
# at TGCC on IRENE (BULLX) :
# -------------------------------------------------------
#
# At TGCC , you have two architectures accessible throw 2 differents frontals
# but with a commun disk space , connect to :
#
# - ssh irene-fr : for Intel SkyLake processors
# On Intel processors the MPI use is OPENMPI/4.1.4
# the configure will generate a
# profile_mesonh-LXifort-R8I4-MNH-V5-7-2-MPIAUTO-O2
#
# - ssh irene-amd : for AMD , processors
# On AMD processors the MPI use is OPENMPI/4.1.4
# the configure will generate a
# profile_mesonh-LXifort-R8I4-MNH-V5-7-2-AMD-MPIAUTO-O2
#
#
# At TGCC they use 'one login' for multi-project allocation .
# This induce 'strange' problem with the installation of eccodes
# resulting in file with the wrong default group and 'disk quota excedeed' error
#
# You could get your different project info by 'ccc_myproject'
#
# I recommand you first, supposing that the "Genci Allocation" you want to use
# as for projet group "genXXXX"
#
# 1) to add in your "~/.bash_profile"
#
module switch dfldatadir dfldatadir/genXXXX
newgrp genXXXX
# 2) "logout & login" again
# and check that you have now the good default group
#
id -ng
--> genXXXX
echo $CCCHOME
--> /ccc/.../home/genXXXX/{your_login}
# If all is OK, you can install the code interactively as usual
#
# - install the PACKAGE in your ${CCCHOME} ( default 20Go of quota )
# for example on Intel frontal
cd ${CCCHOME}
cd MNH-V5-7-2/src
./configure
. ../conf/profile_mesonh-LXifort-R8I4-MNH-V5-7-2-MPIAUTO-O2
make -j16 |& tee error$XYZ
make installmaster
# REM: The eccode lib will be installed in your ${CCCWORKDIR}
# also for the quota problem ...
#
# - to run the test case examples run
#
# On intel Skylake
ccc_msub job_make_examples_BullX_irene
# On intel AMD
ccc_msub job_make_examples_BullX_irene_AMD
#
# at ECMWF on hpc-login ( ATos/HPCF ) :
# ------------------------------------------
#
# - to install MESONH go to your $HPCPERM directory
#
# - for the compilation :
# after the ./configure in the login node
#
# connecte to an "interactive compute node" via ( 16 core & 16GO of memory
ecinteractive -c16 -m 16G -t 12:00:00
etc ...
# - to run the test case examples run
sbatch job_make_examples_Atos_HPCF
#
# - At Meteo-France DSI on belenos
#
# to install the whole package on your "$HOME" directory
# untar the file "MNH-V5-7-2.tar.gz" from its location :
cd ~
tar xvf $MESONH/MNH-V5-7-2.tar.gz
# run the "./configure" command :
cd MNH-V5-7-2/src
./configure
#
# Due to limitation in time & memory on interactive connection
# then compile the MESONH PACKAGE in batch mode with the job_make_mesonh_BullX_belenos file :
sbatch job_make_mesonh_BullX_belenos
# This job does : gmake -j 4
# then : make installmaster
# To run basic KTEST examples :
sbatch job_make_examples_BullX_belenos
# Step-2 : configure/compiling with VER_USER=...
# ----------------------------------------------
# In a new session set the variable "VER_USER" with the name of your "USER VERSION",
# and run again the "./configure" command
#
export VER_USER=MY_MODIF
./configure
# this will regenerate the "profile-mesonh" file and a copy
# of this with the extent "profile_mesonh...${VER_USER)..."
#
# in job_make_mesonh_user_BullX insert " export VER_USER=MY_MODIF "
# then submit in batch mode
sbatch job_make_mesonh_user_BullX_belenos
#
#
# at CALMIP on OLYMPE (BULLX) :
# -------------------------------------------------------
#
# - install the PACKAGE in your /tmpdir/$USER
# - Compile in interactive mode
#
# - to run the test case examples run
sbatch job_make_examples_BullX_olympe
#
# That's all for the basic INSTALLATION of the "MESONH PACKAGE"
#
#
# VII) "SCANDOLLAR" = SCRIPTING YOUR OWN PROCEDURES
# ====================================================
REM : not tested on 5-5-X version ...
# A small script 'scandollar' is in test in this version of MESONH.
# It will help you to build a complete chaining of an experiment.
# The idea is to write some "template" scripts with '$VARIABLE' in the
# Key point. Then 'scandollar' will parse this template files
# and generate the file with the variables evaluated ...
#
# First don't forget to load your "profile_mesonh..."
#
# So how it work ...
#
# Syntaxe
export CONFEXP="YOUR_EXPERIMENT"
scandollar [list_directory]
# What is done :
#
# for all (directory) in [liste directory]
# go to this (directory)
# - read the environnement variable in the user 'confdollar' file
# - read the default environnement variable for this 'machine' in ${CONF_DOLLAR}
# - parse all the '*.ihm' file and put the transformed file
# (without extension in) in a new sub-directory '${CONFEXP}'
#
# Without [list_directory] the current directory '.' is parsed .
#
# As a demonstration the '16janvier Study Case' is build with this
# template script here :
$SRC_MESONH/MY_RUN/KTEST/007_16janvier_scandollar
#
# EXAMPLE :
# -------
#
# To parse only the first pgd step = directory '001_pgd1'
cd $SRC_MESONH/MY_RUN/KTEST/007_16janvier_scandollar/001_pgd1
export CONFEXP=512
scandollar
## OUTPUT ::
># read default config file :: ---> CONF_DOLLAR=/home/escj/DEV64/PACK-MNH-V5-7-2/conf/post/confdollar_aeropc_default
>#
># read user config file :: ---> CONFIG=confdollar
>#
># processes file *.ihm and put them in ./512/ ::
># ---> run_prep_pgd_xyz.ihm => ./512/run_prep_pgd_xyz
#
# And to run this step
#
cd $SRC_MESONH/MY_RUN/KTEST/007_16janvier_scandollar/001_pgd1/512
(qsub) run_prep_pgd_xyz # qsub on brodie
# To parse all these steps
cd $SRC_MESONH/MY_RUN/KTEST/007_16janvier_scandollar/
scandollar 0*
## OUTPUT ::
>#
># read default config file :: ---> CONF_DOLLAR=/home/escj/DEV64/PACK-MNH-V5-7-2/conf/post/confdollar_aeropc_default
>#
># read user config file :: ---> CONFIG=confdollar
>#
># processes file *.ihm and put them in 001_pgd1/512/ ::
># ---> run_prep_pgd_xyz.ihm => 001_pgd1/512/run_prep_pgd_xyz
...
># read user config file :: ---> CONFIG=confdollar
>#
># processes file *.ihm and put them in 008_run2/512/ ::
># ---> run_mesonh_xyz.ihm => 008_run2/512/run_mesonh_xyz
>#
...
># read user config file :: ---> CONFIG=confdollar
>#
># processes file *.ihm and put them in 011_diaprog/512/ ::
># ---> run_diaprog.ihm => 011_diaprog/512/run_diaprog
#
# The chaining of the differents steps is control by the "RMSHELL" variable .
# To inhibit put a "#" in it , eather in your current shell
# or in the 'confdollar' file .
export RMSHELL="#"
#
# Some 'predefine' variables are set in the '${CONF_DOLLAR}' default files
# --> One file is defined by know-computer .
#
# Are included files for 'brodie' , 'vargas' , ( babel beta-test ) , 'c1a' , 'jade' & 'aeropc*' ( = default for unknown host )
export CONF_DOLLAR=${SRC_MESONH}/conf/post/confdollar_aeropc_default
#
# You could define your own default file and use it by setting
# in your shell the 'CONF_DOLLAR' variable
# ( By default './configure' will set it for you in the profile_mesonh file )
#
# ON GENCI PLATEFORM
# ------------------
#
# You will find my "own" personal installation of MESONH
# in the next directory . If you need only to run MESONH
# without recompiliong new sources for MESONH, you could :
#
# - source/load my own "profile_mesonh" without modification
#
# - and copy the scripts examples with
cp -R 007_16janvier_scandollar /.../your_directory
#
#
# You could also copy only the differents "*/512" sub-directory
# if you don't when ti use the "scandollar" script .
#
#
# You will the need to change only information corresponding
# the location to your own path directory for the input/ouput data .
#
# So
#
# - At IDRIS :
# ==========
#
# On Brodie
# ---------
#
# use this "profile_mesonh" :
. /home/rech/mnh/rmnh007/DEV/MNH-V5-7-2/conf/profile_mesonh-SX8-MNH-V5-7-2-MPIAUTO-O4
# And the examples are here ( link to my $WORKDIR in actually )
/home/rech/mnh/rmnh007/DEV/MNH-V5-7-2/MY_RUN/KTEST/007_16janvier_scandollar
#
# On vargas
# ---------
# use this "profile_mesonh" :
. /workgpfs/rech/mnh/rmnh007/DEV/MNH-V5-7-2/conf/profile_mesonh-AIX64-MNH-V5-7-2-MPIAUTO-O2
# and examples here :
/workgpfs/rech/mnh/rmnh007/DEV/MNH-V5-7-2/MY_RUN/KTEST/007_16janvier_scandollar
#
# - At CINES on JADE :
# =================
#
# use
. /work/escobar/DEV/MNH-V5-7-2/conf/profile_mesonh-LXifort-MNH-V5-7-2-MPIICE-O2
# and the exemples
/work/escobar/DEV/MNH-V5-7-2/MY_RUN/KTEST/007_16janvier_scandollar
#
# - At ECMWF on cxa :
# ===============
#
# use
. /c1a/ms_perm/au5/MNH-V5-7-2/conf/profile_mesonh-AIX64-MNH-V5-7-2-MPIAUTO-O2
# and the examples
/c1a/ms_perm/au5/MNH-V5-7-2/MY_RUN/KTEST/007_16janvier_scandollar
#
# Good luck!!!
#
#
# VIII) TROUBLE-SHOOTING
# ======================
#
#
# a) "Segmentation violation" -> problem of "stack size" limit
# ------------------------------------------------------------
#
# When running the examples coming with the MESONH package, if you obtain
# a "segmentation violation" error it is probably a problem with
# the "stack size" limit on your Linux computer ...
#
# Check this limit with the command
ulimit -s
# The limit is given in Kbytes and is often 8192 KB
#
# ---> this mean only 8Mbytes for array in stack memory
#
# It's a very low walue !!!
#
# We recommend you to put it to "unlimited" in your
# ".bashrc" or ".profile" like this
ulimit -s unlimited
#
# b) Compiler BUG with "ifort 10.0.xxx"
# -------------------------------------
#
# Some routines do not compile with
# the version "10.0.XXX" of "ifort" ( at least until 10.0.023 )
#
# Solution ---> Upgrade to ifort "10.1.015"
#
# The ifort "10.1.008" has also some bug in the generation
# of optimized 'vectorized SSE' code resulting in unpredictable
# "Flaoting Point" error
#
# Solution ---> compile the routine with problem with '-O1' option
# or upgrade to at least "10.1.015" version
#
#
#
# IX) OPTIONAL COMPILATION
===========================
# a) MNH_FOREFIRE for forefire runs ( external package needed )
# -------------------------------------------------------------
#
# If you want to use coupled(inline) run with FOREFIRE and MESONH
# or use routines to do high frequency parallel file dumps
# you could compile the interfaced/coupling routine by activating
# this variable before any compilation.
# FOREFIRE available at https://github.com/forefireAPI/forefire
# follow instruction to compile with option -DMPI_COUPLING to run
# you have to set #FOREFIREHOME to the directory where you have installed
# the forefire package so it can find extras, such as web interface
# After compilation you must link :
# $MESONH/EXE/libForeFire.so with $FOREFIREHOME/lib/libforefireL.{so,dylib,dll}
# for the MESONH binary to find the FOREFIRE library.
export MNH_FOREFIRE=1.0
# see d) for cleaning previously version if needed
# b) MNH_RTTOV for optional radiative computation
# --------------------------------------
#
# The RTTOV 13.2 package was not included into the open source version of Meso-NH
# because it needs a licence agrement.
#
# Run the 'configure' script preceded with the setting of the MNH_RTTOV variable:
#
cd $SRC_MESONH/src/
export MNH_RTTOV=1
export VER_RTTOV=13.2
#
# Compile the HDF5 library
#
make cdf
#
# Download the RTTOV package rttov132.tar.xz by following the instructions given on https://nwpsaf.eu/site/software/rttov/
#
# Install the RTTOV package rttov132.tar.xz
cd $SRC_MESONH/src/LIB
mkdir RTTOV-13.2
cd RTTOV-13.2
tar xJf rttov132.tar.xz
cd build
edit Makefile.local and set HDF5_PREFIX, FFLAGS_HDF5 and LDFLAGS_HDF5 as shown below
"
HDF5_PREFIX = $(SRC_MESONH)/src/dir_obj${XYZ}/MASTER/NETCDF-${VERSION_CDFF}
FFLAGS_HDF5 = -D_RTTOV_HDF $(FFLAG_MOD)$(HDF5_PREFIX)/include
LDFLAGS_HDF5 = -L$(HDF5_PREFIX)/lib64 -lhdf5hl_fortran -lhdf5_hl -lhdf5_fortran -lhdf5 -lsz -laec -lz -ldl
"
cd ../src
../build/Makefile.PL RTTOV_HDF=1
make ARCH=ifort # Use Intel "ifort" compiler; other options: gfortran, NAG, pgf90, IBM
#
# And then for the Meso-NH compilation, do
#
cd $SRC_MESONH/src/
make
# c) MNH_ECRAD for optional compilation of new ECRAD radiative library from ECMWF
# --------------------------------------
#
# The default version of ECRAD is 1.4.0 (open-source)
#
# Configure & Compilation
export MNH_ECRAD=1
./configure
etc ...
# The version of ECRAD is set by (by default):
# export VER_ECRAD=140
#
# To use the previous version 1.0.1:
#
# The full ECRAD package 1.0.1 was not included into the open source version of Meso-NH
# because it needs a licence agrement.
#
# See here to get the licence & full sources : https://software.ecmwf.int/wiki/display/ECRAD/ECMWF+Radiation+Scheme+Home
#
# REM : some of the files modified for MNH are included in the directory ${SRC_MESONH}/src/LIB/RAD/ecrad-1.0.1_mnh
#
# Install the ECRAD package ecrad-1.0.1.tar.gz in the MNH tree directory
cd ${SRC_MESONH}/src/LIB/RAD
tar xvfz ecrad-1.0.1.tar.gz
# Configure & Compilation
export MNH_ECRAD=1
export VER_ECRAD=101
./configure
etc ...
#
# REM : the 'profile_mesonh...' file & the 'dir_obj...' directory will be suffixed with an ECRAD extension
#
# Usage :
# 1) In namelist replace RAD='ECMW' by RAD='ECRA'
# 2) Add link to all 'ecrad-1.X.X/data' files in your mesonh run directory
ln -sf ${SRC_MESONH}/src/LIB/RAD/ecrad-1.X.X/data/* .
#
# REM : you can replace CDATADIR = "." by CDATADIR = "data" of ini_radiations_ecrad.f90 to link only the data folder instead of all the files one by one
#
# See 007_16janvier/008_run2 test case for example
#
# d) MNH_MEGAN for optional compilation of MEGAN code
# --------------------------------------
#
# Configure & Compilation
export MNH_MEGAN=1
./configure
etc ...
# e) cleaning previous compiled version
# --------------------------------------
#
# If you have already compiled exactly the same version of MesoNH on this computer ( same $XYZ value )
# you have first to 'clean' this versio with
#
make cleanmaster
#
# this will delete the dirobj_${XYZ} directory and all the preprocessed sources contained on it ..
#
# I you have also a VER_USER version do
make cleanuser
wget http://anonymous:mto@webdav.cnrm.meteo.fr/public/algo/khatib/src/48t1_main.01.tgz
Pour chacun de ces packs, le répertoire bin créé est un lien. On déplace le répertoire pour que le binaire soit effectivement sur /cnrm
Pour tous les packs: le code provient du git, dr_hook est modifié pour ubuntu, aro_rain_ice est corrigé et l'option -ftree-vectorize est supprimée
main.01: code du git
phyex.01: code du git avec rangement dans phyex
#################################
#Ce qui suit est conservé au cas où mais n'est plus utile
main.01: (-a) code du git, recompil sans rien changer
main.02: idem main.01 mais compil 1proc, listing compil sauve
phyex.01: (-a) code du git, split puis recompil
phyex.02: (-a) décrit ci-dessous
phyex.03: pour test (cf. ci-dessous)
phyex.04: idem phyex.02 mais sur ubuntu, + correction budget RH dans aro_rain_ice
phyex.05: idem phyex.04 mais en -O0
phyex.06: basé sur 04, cp main/phyex local/phyex, -O0 dans ics_masterodb (gmkpack -r 48t1 -b phyex -v 04 -l MPIGFORTRAN920DBL -o xfftw -p masterodb -f /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/ -h /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/ -u phyex -n 06). Puis recompile en ajoutant les codes suivants dans local: arpifs/namelist/namparar.nam.h arpifs/phys_dmn/suparar.F90 arpifs/phys_dmn/apl_arome.F90 arpifs/module/yomparar.F90 mpa/turb/externals/aro_turb_mnh.F90 mpa/micro/externals/aro_convbu.F90 mpa/micro/externals/aro_lima.F90 mpa/micro/externals/aro_rain_ice.F90 mpa/micro/externals/aro_startbu.F90 mpa/micro/interface/aro_rain_ice.h
phyex.07: idem 02 avec correction aro_rain_ice (compilé depuis lxphynh9). Manip sur libifsaux inutile => non faite!!!
phyex.08: idem 07 mais construit sur 02 (pour modifier aro_rain_ice) plutot que recompilé entièrement
phyex.09: idem 04 mais sans -ftree-vectorize, et avec modif libifsaux
phyex.10: idem 09 mais compilé depuis pxphynh18 (ubuntu)
phyex.11: idem 10 mais LANG=C.UTF-8
phyex.12: idem 09 (sur sxphynh en ubuntu) mais avec 'export GMKTMP=/dev/shm'
phyex.13: idem 12 mais avec 'export GMKTMP=/tmp'
phyex.14: idem 13 mais avec 'export GMKTMP=/home/riette/mon_rep_tempo', répertoire créé pour l'occasion
phyex.15: idem ?? mais un seul thread
Manip sur les lib (2 packs sinon édition de lien trop lente):
phyex.02: (-a) code du git, split, recompil (jusqu'ici, identique à phyex.01), modif lib (ci-dessous), recompil
cd lib; mv libifsaux.local.a ..; cp /home/riette/packs/PHYEX/ori/lib/libifsaux.main.a libifsaux.local.a; cd ..; ./ics_masterodb
Pour effectuer les tests (pour trouver qu'ifsaux est le coupable, j'ai utilisé un deuxième pack pour que l'édition de lien soit plus rapide):
phyex.03: (basé sur phyex.02): gmkpack -r 48t1 -b phyex -v 02 -l MPIGFORTRAN920DBL -o xfftw -p masterodb -f /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/ -h /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/ -u phyex -n 03
libs=$(for file in $(\ls *.a | grep -v libmpa | grep -v libphyex | cut -d. -f1); do echo $file; done)
libs="libaeolus libaladin libalgor libarpifs libbiper libblacklist libcma-odb libcountryrst-odb libcoupling libcrm libdummyaeolus libdummyaladin libdummyalgor libdummyarpifs libdummybiper libdummyblacklist libdummyetrans libdummympa libdummymse libdummyodb libdummysatrad libdummysurf libdummytrans libecfftw libetrans libgrib-utilities libifsaux libifsobs libmain-odb libmse libmtocomp-odb libobstat libodb libpearome-utilities libport-odb libpregpssol-utilities libprograms-aladin libprograms-arpifs libprograms-blacklist libprograms-etrans libprograms-ifsaux libprograms-mse libprograms-satrad libprograms-scat libprograms-trans libradiation librstbias-odb libsatrad libscat libsonderst-odb libsurfex libsurf libtrans libunsxref-verbose libutilities"
libs="libifsaux"
do:
for file in $libs; do rm -f ${file}.main.a; ln -s /home/riette/packs/PHYEX/ori/lib/${file}.main.a; done
undo:
for file in $libs; do rm -f ${file}.main.a; ln -s /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/48t1_phyex.02.MPIGFORTRAN920DBL.xfftw/lib/${file}.local.a ${file}.main.a; done
Some installations are needed:
1) IAL REFERENCE PACK
The check_commit_ial.sh script, by default, build a pack on top of a precompiled pack.
This precompiled pack must be build beforehand. Instructions can be found in
** INSTALL_pack_ial **
2) MESONH REFERENCE PACK
The reference pack for Meso-NH must be installed. Instructions can be found in
** INSTALL_pack_mesonh **
3) MNH_EXPAND
This tool is composed of two parts: the filepp software, and the MNH_Expand_Array package.
Installation is described in ** INSTALL_mnh_expand **
4) TESTPROGS REFERENCE DATA
The script check\_commit\_testprogs.sh needs reference data.
The data generation is explained in ** INSTALL_testprogs **
Two packages must be installed:
- filepp
- MNH_Expand_Array
################
filepp
################
In the mnh_expand directory:
wget https://www-users.york.ac.uk/~dm26/filepp/filepp-1.8.0.tar.gz
tar xvf filepp-1.8.0.tar.gz
cd filepp-1.8.0
./configure --prefix=$PWD
make install
Go back one directory upper and create a link:
cd ..
ln -s filepp-1.8.0 filepp
################
MNH_Expand_Array
################
In the mnh_expand directory, clone the repository found at
https://github.com/JuanEscobarMunoz/MNH_Expand_Array.git
#######################################################################
Pack creation
#######################################################################
This document describes how to build reference packs on sxphynh and belenos.
The following instructions focuse on the 'phyex' pack in which the physics
have been put in a new gmkpack project, named phyex.
Another pack ('main') have been produced as a super-reference without code
move. Only a recompilation has been done.
This document ends with instruction on how to use these packs. This step
is now automatically performed with the prep_code.sh script.
In these instructions, the git package have been installed in:
sxphynh:/cnrm/phynh/data1/riette/DATA/202005_externalisation_physique
belenos:/scratch/work/riette/202005_externalisation_physique
Pathes must be adapted.
#######################################################################
Creation on sxphynh, to be done only once and to be shared among users:
#######################################################################
version=01
#Get source code
getpack 48t1_main.01.MPIGFORTRAN920DBL.xfftw
export GMKTMP=/dev/shm
#Create main pack
(. berootpack)
gmkpack -a -r 48t1 -b phyex -n $version -l MPIGFORTRAN920DBL -o xfftw -p masterodb -h /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/
#populate main pack with source code
cd /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/48t1_phyex.${version}.MPIGFORTRAN920DBL.xfftw/src/local
wget http://anonymous:mto@webdav.cnrm.meteo.fr/public/algo/khatib/src/48t1_main.01.tgz
tar xf 48t1_main.01.tgz
rm -f 48t1_main.01.tgz
for rep in turb micro conv; do
mkdir -p phyex/$rep
mv mpa/$rep/internals/* phyex/$rep/
mv mpa/$rep/module/* phyex/$rep/
rmdir mpa/$rep/internals mpa/$rep/module
done
tar xf /cnrm/algo/khatib/drhook.c_for_ubuntu.tar
sed -i 's/IF (LBUDGET_RH)/IF (LBUDGET_RH .AND. KRR==7)/' mpa/micro/externals/aro_rain_ice.F90
Édition de apl_arome.F90 pour modifier:
IF (LMFSHAL .AND. (CMF_CLOUD=='DIRE'.OR.CMF_CLOUD=='BIGA')) THEN
IOFF_MFSHAL=IOFF_MFSHAL+3
...
ENDIF
en:
IF (LMFSHAL .AND. (CMF_CLOUD=='DIRE'.OR.CMF_CLOUD=='BIGA')) THEN
IOFF_MFSHAL=IOFF_MFSHAL+3
...
ELSE
DO JLEV = 1, KLEV
ZRC_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ZRI_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ZCF_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ENDDO
ENDIF
Édition de apl_arome.F90 pour modifier:
IF ( LKFBCONV.AND.LOSUBG_COND.AND..NOT.LOSIGMAS) THEN
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=PSIGM(KIDIA:KFDIA,JLEV)
ENDDO
ENDIF
en:
IF (LOSUBG_COND.AND..NOT.LOSIGMAS) THEN
IF (LKFBCONV) THEN
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=PSIGM(KIDIA:KFDIA,JLEV)
ENDDO
ELSE
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=0._JPRB
ENDDO
ENDIF
ENDIF
#Compilation
cd /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/48t1_phyex.${version}.MPIGFORTRAN920DBL.xfftw
grep MPA .gmkfile/MPIGFORTRAN920DBL.GMAP | sed 's/MPA/PHYEX/g' >> .gmkfile/MPIGFORTRAN920DBL.GMAP # <-------------------- to be modified by Ryad
édition pour ajouter -DREPRO48 à la variable MACROS_FRT supprimer les corrections de bugs et assurer la reproduction avec le cy48
édition pour retirer (ubuntu) -ftree-vectorize
sed -i 's/GMK_THREADS=1/GMK_THREADS=10/' ics_masterodb
cleanpack -f
resetpack -f
./ics_masterodb
#######################################################################
Creation on belenos, to be done only once and to be shared among users:
#######################################################################
version=01
#Create main pack
(. berootpack)
gmkpack -a -r 48t1 -b phyex -n $version -l MIMPIIFC1805 -o 2y -p masterodb -h /scratch/work/riette/202005_externalisation_physique/pack/
#populate main pack with source code
cd /scratch/work/riette/202005_externalisation_physique/pack/48t1_phyex.${version}.MIMPIIFC1805.2y/src/local/
ssh sxphynh.cnrm.meteo.fr "wget http://anonymous:mto@webdav.cnrm.meteo.fr/public/algo/khatib/src/48t1_main.01.tgz -O -" > 48t1_main.01.tg
tar xf 48t1_main.01.tgz
rm -f 48t1_main.01.tgz
for rep in turb micro conv; do
mkdir -p phyex/$rep
mv mpa/$rep/internals/* phyex/$rep/
mv mpa/$rep/module/* phyex/$rep/
rmdir mpa/$rep/internals mpa/$rep/module
done
sed -i 's/IF (LBUDGET_RH)/IF (LBUDGET_RH .AND. KRR==7)/' mpa/micro/externals/aro_rain_ice.F90
Édition de apl_arome.F90 pour modifier:
IF (LMFSHAL .AND. (CMF_CLOUD=='DIRE'.OR.CMF_CLOUD=='BIGA')) THEN
IOFF_MFSHAL=IOFF_MFSHAL+3
...
ENDIF
en:
IF (LMFSHAL .AND. (CMF_CLOUD=='DIRE'.OR.CMF_CLOUD=='BIGA')) THEN
IOFF_MFSHAL=IOFF_MFSHAL+3
...
ELSE
DO JLEV = 1, KLEV
ZRC_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ZRI_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ZCF_MF_(KIDIA:KFDIA,JLEV)=0._JPRB
ENDDO
ENDIF
Édition de apl_arome.F90 pour modifier:
IF ( LKFBCONV.AND.LOSUBG_COND.AND..NOT.LOSIGMAS) THEN
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=PSIGM(KIDIA:KFDIA,JLEV)
ENDDO
ENDIF
en:
IF (LOSUBG_COND.AND..NOT.LOSIGMAS) THEN
IF (LKFBCONV) THEN
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=PSIGM(KIDIA:KFDIA,JLEV)
ENDDO
ELSE
DO JLEV = 1, KLEV
ZMFM_(KIDIA:KFDIA,JLEV)=0._JPRB
ENDDO
ENDIF
ENDIF
#Compilation
cd /scratch/work/riette/202005_externalisation_physique/pack/48t1_phyex.${version}.MIMPIIFC1805.2y/
grep MPA .gmkfile/MIMPIIFC1805.EPONA | sed 's/MPA/PHYEX/g' >> .gmkfile/MIMPIIFC1805.EPONA # <-------------------- to be modified by Ryad
édition pour ajouter -DREPRO48 à la variable MACROS_FRT supprimer les corrections de bugs et assurer la reproduction avec le cy48
sed -i 's/GMK_THREADS=1/GMK_THREADS=10/' ics_masterodb
cleanpack -f
resetpack -f
sbatch --wait ics_masterodb
###################################
Usage on any computer (with /cnrm):
###################################
getpack 48t1_main.01.MPIGFORTRAN920DBL.xfftw
commit=9ce8119430dd603d35308d8ae94cf18636157473
name="commit=$commit"
gmkpack -r 48t1 -b phyex -v 01 -l MPIGFORTRAN920DBL -o xfftw -p masterodb -f /cnrm/phynh/data1/riette/DATA/202005_externalisation_physique/pack/ -u PHYEX/$name
cd $HOMEPACK/PHYEX/$name/src/local/phyex
git clone git@github.com:QuentinRodier/PHYEX.git
cd PHYEX
git checkout $commit
for rep in turb micro conv; do
mv -f src/common/$rep/* ../$rep/
mv -f src/arome/$rep/* ../$rep/
touch ../$rep/*
done
cd ..
rm -rf PHYEX
cd $HOMEPACK/PHYEX/$name
sed -i 's/GMK_THREADS=1/GMK_THREADS=10/' ics_masterodb
cleanpack -f
./ics_masterodb
####################
Usage on any belenos
####################
commit=9ce8119430dd603d35308d8ae94cf18636157473
name="commit=$commit"
gmkpack -r 48t1 -b phyex -v 01 -l MIMPIIFC1805 -o 2y -p masterodb -f /scratch/work/riette/202005_externalisation_physique/pack/ -u PHYEX/$name
cd $HOMEPACK/PHYEX/$name/src/local/phyex
git clone git@github.com:QuentinRodier/PHYEX.git
cd PHYEX
git checkout $commit
for rep in turb micro conv; do
mv -f src/common/$rep/* ../$rep/
mv -f src/arome/$rep/* ../$rep/
touch ../$rep/*
done
cd ..
rm -rf PHYEX
cd $HOMEPACK/PHYEX/$name
sed -i 's/GMK_THREADS=1/GMK_THREADS=10/' ics_masterodb
cleanpack -f
sbatch --wait ics_masterodb
1) Compilation de la master
Il faut installer dans le répertoire pack une version de mesonh officielle:
cd <git repository>/pack
scp sxphynh.cnrm.meteo.fr:/home/rodierq/MNH-V5-5-0.tar.gz .
tar xvfz MNH-V5-5-0.tar.gz
cd MNH-V5-5-0/src
./configure
. ../conf/profile_mesonh-*
make -j 8
make installmaster
2) Lancer les étapes de pré-processing au moins une fois en master sur le KTEST :
cd ../MY_RUN/KTEST/007_16janvier
# J'ai modifié la namelists du cas pour activer plus d'option, récupérer le nouveau dossier de run :
rm -Rf 008_run2; scp -r sxphynh.cnrm.meteo.fr:/home/rodierq/MNH-V5-5-0/MY_RUN/KTEST/007_16janvier/008_run2 .
make clean
make #l'étape 10 ne se déroule sans erreur que si un display (X11) est disponible
#après l'erreur, les étapes suivantes peuvent être lancées par "make E011_ncl E012_spectre"
3) Récupérer le pack modifie pour accueillir PHYEX (essentiellement le makefile modifié et le répertoire PHYEX créé)
cd <git repository>/pack
scp sxphynh.cnrm.meteo.fr:/home/rodierq/MNH-V5-5-0_PHYEX.tar.gz .
4) Certains commits ne reproduisent pas le commit de référence. En attendant la résolution du problème ces
commits sont contrôlés par rapport au b1e20 mais ce commit n'est pas compilable directement. Pour le
compiler, il faut inverser l'ordre des arguments d'appel des fonctions DZM_MF, MZM_MF, GZ_M_W_MF
dans les sources compute_bl89_ml, tridiag_massflux.f90 et shuman_mf.f90
The testprogs_data directory must be filled by reference data.
These data are generated according to the description provided in the Offline documentation.
The check_commit_testprogs.sh script will run offline simulations in the directory given
by the environment variable TESTPROGSDIR ($HOME/TESTPROGS will be used if the variable is not set).
This directory must exist.
Libtools sources may be retrieved with the following commands.
Choose a working directory to install the sources, then
- To get the latest stable revision :
cvs co libtools
- To get the latest development release :
cvs co -r LIBTOOLS-DEVEL-branch libtools
- To get the latest CNRM development release :
cvs co -r LIBTOOLS-CNRM-branch libtools
- to get the LIBTOOLS-DEVEL-1-0-2 release :
cvs co -r LIBTOOLS-DEVEL-1-0-2 libtools
Tags that may appear in this repository are explained below :
MAIN
====
| LIBTOOLS-DEVEL-branch LIBTOOLS-CNRM-branch
| ===================== ====================
| | |
| | |
LIBTOOLS-1-0-0 ------------------+---------------------------------+
| | |
| | |
| | |
| DEV-SURC-7-4-1 |
| | |
| | |
| DEV-SURC-7-4-1-1 |
| | |
| | |
| DEV-SURC-7-4-1-2 |
| | |
| | |
| LIBTOOLS-DEVEL-1-0-1 |
| | |
| | |
| | |
| LIBTOOLS-DEVEL-1-0-2 merge |
| merged_from_DEVEL_to_CNRM ---------> LIBTOOLS-CNRM-1-0-2
| | |
. . .
. . .
. . .
Branch TAGS
===========
MAIN : this branch contains official stable LibTools sources.
LIBTOOLS-DEVEL-branch : this branch contains sources currently under
development that sooner or later are merged to
main branch.
LIBTOOLS-CNRM-branch : this branch is reserved to CNRM development/tests.
Sources may be merged to MAIN or LIBTOOLS-DEVEL-branch
branch.
Release TAGS
============
LIBTOOLS-x-y-z : this tag is applied to all sources of a stable LIBTOOLS release
on the MAIN branch.
LIBTOOLS-DEVEL-x-y-z : this tag is applied to all sources of a development LIBTOOLS
release on the LIBTOOLS-DEVEL-branch development branch.
DEV-SURC-x-y... : this tag is only applied to the lib/SURCOUCHE sources on the
LIBTOOLS-DEVEL-branch development branch.
LIBTOOLS-CNRM-x-y... : this tag is applied to all sources of a development/test LIBTOOLS
release on the LIBTOOLS-CNRM-branch development branch.
Note that all sources from LIBTOOLS-DEVEL-1-0-2 and LIBTOOLS-CNRM-1-0-2 release
are strictly identical (except maybe for the README.TXT file).
Release tag : LIBTOOLS-CNRM-4-8-a on September 24 2009
Welcome to MESONH Libtools...
Branch : LIBTOOLS-CNRM-branch
TAG : $Name$
Support for gfortran ver > 4.3 and NCL/NCAR 5.1.1
with :
export ARCH=LXgfortran
Documentation can be found in 'readme' directory.
LaTeX sources of documentation can be found in 'readme/LATEX'
directory : type make in the LATEX directory to build the
postscript documentation file : tools.ps
How to compile ?
cd lib
export ARCH=LXgfortran
make COMPRESS
make NEWLFI
make SURCOUCHE
make MPIvide
make RAD2
make vis5d
cd gribex_1302b
export ARCH=linux
export CNAME=_gfortran
export A64=A64
make
cd ../../tools
cd diachro
export ARCH=LXgfortran
export MNH_LIBTOOLS= absolute path for libtools directory
make
# The executables are in the directory LXgfortran_64 conv2dia and LXgfortran_32 for the others
cd ../fmmore
make
# The executable is in the directory LXgfortran_64
cd ../lfiz
make
# The executables ate in the directory LXgfortran
CPP = cc -C -E
AR = ar
F77 = xlf90 -q32 -qextname
F90 = xlf90 -q32 -qextname
F77FLAGS = -qfixed -O3 -qstrict
F90FLAGS = -qfree=f90 -qsuffix=f=f90 -O3 -qstrict
CPPFLAGS =
LDFLAGS = -bloadmap:map_ld
CPP = cc -C -E
AR = ar -X64
F77 = xlf90_r -qarch=pwr4 -qzerosize -qautodbl=dbl4 -qmaxmem=-1
F90 = xlf90_r -qarch=pwr4 -qzerosize -qautodbl=dbl4 -qmaxmem=-1
F77FLAGS = -q64 -qfixed -O3 -qstrict
F90FLAGS = -q64 -qfree=f90 -qsuffix=f=f90 -O3 -qstrict
CFLAGS = -q64
CPPFLAGS =
LDFLAGS = -q64 -bloadmap:map_ld
CPP = /usr/lib/cpp -P -C
AR = ar
CC = cc
F77 = f95
F90 = f95
F90FLAGS = -f77 -kind=byte -w -mismatch_all
F77FLAGS = -f77 -kind=byte -w -mismatch_all -dusty
LDFLAGS = -unsharedf95
CPP = /usr/lib/cpp -P -C
AR = ar
F90 = f90 +DAportable
F77 = f90 +DAportable
CPPFLAGS = -DHP -DF90HP
F90FLAGS = -w
F77FLAGS = -w
CPP = cpp -P -traditional -Wcomment
AR = ar
CC = cc
F77 = f95
F90 = f95
CPPFLAGS = -DNAGf95
#F90FLAGS = -kind=byte -w -C=all -gline
F90FLAGS = -kind=byte -w -mismatch_all -gline
F77FLAGS = -kind=byte -w -mismatch_all -dusty
LDFLAGS = -unsharedf95
CPP = cpp -P -traditional -Wcomment
AR = ar
CC = cc
F77 = g95
F90 = g95
CPPFLAGS = -DG95
F90FLAGS = -w -fno-second-underscore
F77FLAGS = -w -fno-second-underscore
LDFLAGS =
CPP = cpp -P -traditional -Wcomment
AR = ar
CC = cc
F77 = gfortran
F90 = gfortran
CPPFLAGS = -DGFORTRAN
F90FLAGS = -w -fno-second-underscore
F77FLAGS = -w -fno-second-underscore
LDFLAGS =
CPP = cpp -P -traditional -Wcomment
AR = ar
CC = cc
F77 = ifort
F90 = ifort
CPPFLAGS =
F90FLAGS =
F77FLAGS =
LDFLAGS =
CPP = cpp -P -traditional -Wcomment
AR = ar
CC = cc
F77 = pgf90
F90 = pgf90
CPPFLAGS = -Dpgf
F90FLAGS = -w
F77FLAGS = -w
LDFLAGS = -Wl,-noinhibit-exec -Wl,-warn-once