From f417b524438fc0af3b914e1b6d1e80ba12762411 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Chaboureau <jean-pierre.chaboureau@aero.obs-mip.fr> Date: Mon, 21 Nov 2016 19:00:50 +0100 Subject: [PATCH] Jean-Pierre 21/11/2016: a few updates for RTTOV --- A-INSTALL | 29 ++++++++++++++++++++++++++++- src/Makefile.MESONH.mk | 4 ++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/A-INSTALL b/A-INSTALL index c3b09b02d..38dc2eca7 100644 --- a/A-INSTALL +++ b/A-INSTALL @@ -986,8 +986,34 @@ git clone -b 2014.01 https://github.com/forefireAPI/firefront.git # -------------------------------------- # # The RTTOV package was not included into the open source version of Meso-NH -# because it needs a licence agrement . +# because it needs a licence agrement. # +# ---------------------------------- +# OPTION 1: Use version 11.3 of RTTOV +# ----------------------------------- +# Download the RTTOV package rttov113.tar.gz by following the instructions given on http://nwpsaf.eu/site/software/rttov/ +# +# Install the RTTOV package rttov113.tar.gz +cd MNH.../src/LIB +mkdir RTTOV-11.3 +cd RTTOV-11.3 +tar xvfz rttov113.tar.gz +cd src +make ARCH=ifort # Use Intel "ifort" compiler; other options: gfortran, NAG, pgf90, IBM +# +# And then for the compilation, run the 'configure' script preceded with the setting of the MNH_RTTOV variable: +# + +cd MNH.../src/ +export MNH_RTTOV=1 +export VER_RTTOV=11.3 +./configure + +etc ... + +# ---------------------------------- +# OPTION 2: Use version 8.7 of RTTOV +# ---------------------------------- # For already(old) licencied MesoNH users (MNH-4-X version with research licence see here: http://mesonh.aero.obs-mip.fr/mesonh410/UserInformation) # # the package could be reloaded in this way @@ -1014,6 +1040,7 @@ tar xvfz RTTOV.tar.gz cd MNH.../src/ export MNH_RTTOV=1 +export VER_RTTOV=8.7 ./configure etc ... diff --git a/src/Makefile.MESONH.mk b/src/Makefile.MESONH.mk index 179f53bdd..42891bf5b 100644 --- a/src/Makefile.MESONH.mk +++ b/src/Makefile.MESONH.mk @@ -162,12 +162,12 @@ INC += $(INC_RTTOV) CPPFLAGS += $(CPPFLAGS_RTTOV) CPPFLAGS_MNH += -DMNH_RTTOV_8=MNH_RTTOV_8 endif -ifeq "$(VER_RTTOV)" "11.1" +ifeq "$(VER_RTTOV)" "11.3" DIR_RTTOV=${SRC_MESONH}/src/LIB/RTTOV-${VER_RTTOV} RTTOV_PATH=${DIR_RTTOV} # INC_RTTOV ?= -I${RTTOV_PATH}/include -I${RTTOV_PATH}/mod -LIB_RTTOV ?= -L${RTTOV_PATH}/lib -lrttov11.1.0_coef_io -lrttov11.1.0_mw_scatt -lrttov11.1.0_main +LIB_RTTOV ?= -L${RTTOV_PATH}/lib -lrttov11_coef_io -lrttov11_mw_scatt -lrttov11_main INC += $(INC_RTTOV) LIBS += $(LIB_RTTOV) VPATH += $(RTTOV_PATH)/mod -- GitLab