Changeset 1795 for LMDZ5/branches/testing/makelmdz_fcm
- Timestamp:
- Jul 18, 2013, 10:20:28 AM (11 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 1747-1749,1751,1753-1767,1769,1771-1772,1774-1776,1778-1794
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/makelmdz_fcm
r1752 r1795 57 57 case $1 in 58 58 "-h") cat <<fin 59 manuel complet sur http://...60 59 Usage : 61 makegcm [options] -m arch exec 62 [-h] : manuel abrégé 63 [-d [[IMx]JMx]LM] : IM, JM, LM sont les dims en x, y, z (def: $dim) 64 [-p PHYS] : compilation avec la physique libf/phyPHYS, (def: lmd) 65 [-prod / -dev / -debug] : compilation en mode production (default) / developpement / debug . 66 [-c false/MPI1/MPI2] : couplé océan : MPI1/MPI2/false (def: false) 67 [-v false/true] : avec ou sans végétation (def: false) 68 [-chimie INCA/false] : avec ou sans model de chimie INCA (def: false) 69 [-parallel none/mpi/omp/mpi_omp] : parallelisation (default: none) : mpi, openmp ou mixte mpi_openmp 70 [-g GRI] : conf. grille dans dyn3d/GRI_xy.h (def: reg inclue un zoom) 71 [-io IO] : choix d'une librairie I/O, experts (def: ioipsl) 72 [-include INCLUDES] : variables supplementaires pour include 73 [-cpp CPP_KEY] : cle cpp supplementaires 74 [-adjnt] : adjoint, a remettre en route ... 75 [-mem] : version memoire reduite (si en mode parallele) 76 [-filtre NOMFILTRE] : prend le filtre dans libf/NOMFILTRE (def: filtrez) 77 [-link LINKS] : liens optionels avec d'autres librairies 78 [-fcm_path path] : chemin pour fcm (def: tools/fcm/bin) 79 [-ext_src path] : chemin d'un repertoire source avec des sources externe a compiler avec le modele 80 -arch nom_arch : nom de l'architecture cible 81 exec : exécutable généré 60 makelmdz_fcm [options] -arch nom_arch exec 61 [-h] : brief help 62 [-d [[IMx]JMx]LM] : IM, JM, LM are the dimensions in x, y, z (default: $dim) 63 [-p PHYS] : set of physical parametrizations (in libf/phyPHYS), (default: lmd) 64 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 65 [-c false/MPI1/MPI2] : coupling with ocean model : MPI1/MPI2/false (default: false) 66 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false) 67 false : no vegetation model 68 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 69 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 70 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 71 [-chimie INCA/false] : with INCA chemistry model or without (default: false) 72 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 73 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) 74 [-io IO] : Input/Output library (default: ioipsl) 75 [-include INCLUDES] : extra include path to add 76 [-cpp CPP_KEY] : additional preprocessing definitions 77 [-adjnt] : adjoint model, not operational ... 78 [-mem] : reduced memory dynamics (if in parallel mode) 79 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 80 [-link LINKS] : additional links with other libraries 81 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 82 [-ext_src path] : path to an additional set of routines to compile with the model 83 -arch nom_arch : target architecture 84 exec : executable to build 82 85 fin 83 86 exit;; … … 86 89 dim=$2 ; shift ; shift ;; 87 90 88 "-O")89 echo "option obsolete dans cette version intermediaire de makegcm"90 exit;;91 92 91 "-p") 93 92 physique="$2" ; shift ; shift ;; … … 127 126 128 127 "-adjnt") 129 echo " option a reactiver";exit128 echo "not operational ... work to be done here ";exit 130 129 opt_dep="$opt_dep adjnt" ; adjnt="-ladjnt -ldyn3d " 131 130 optim="$optim -Dadj" ; shift ;; … … 166 165 fcm_path=$(cd $(dirname $0) ; pwd)"/"${fcm_path} 167 166 fi 167 168 # add fcm_path to PATH 169 export PATH=${fcm_path}:${PATH} 168 170 169 171 echo "Path to fcm:" … … 246 248 fi 247 249 248 if [[ "$veget" == "true" ]] 249 then 250 if [[ "$veget" == "orchidee2.0" ]] 251 then 252 # orchidee2.0 : 253 # Compile with ORCHIDEE 2.0 (or more recent) 254 CPP_KEY="$CPP_KEY CPP_VEGET" 255 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 256 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}orchidee " 257 elif [[ "$veget" == "orchidee1.9" ]] 258 then 259 # orchidee1.9 : 260 # Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 261 CPP_KEY="$CPP_KEY CPP_VEGET ORCHIDEE_NOOPENMP" 262 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 263 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 264 elif [[ "$veget" == "true" ]] 265 then 266 # true : 267 # Obsolete, for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 268 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 250 269 CPP_KEY="$CPP_KEY CPP_VEGET" 251 270 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 252 271 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 272 elif [[ "$veget" != "false" ]] 273 then 274 echo "Option -v $veget does not exist" 275 echo "Use ./makelmdz_fcm -h for more information" 276 exit 253 277 fi 254 278 … … 392 416 fi 393 417 394 if [[ $veget == "true" ]]418 if [[ $veget != "false" ]] 395 419 then 396 420 SUFF_NAME=${SUFF_NAME}_orch
Note: See TracChangeset
for help on using the changeset viewer.