Changeset 1772 for LMDZ5/trunk
- Timestamp:
- Jun 14, 2013, 2:40:46 PM (11 years ago)
- Location:
- LMDZ5/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/makelmdz
r1755 r1772 98 98 case $1 in 99 99 "-h") cat <<fin 100 manuel complet sur http://...101 100 Usage : 102 makegcm [options] exec 103 [-h] : manuel abrege 104 [-d [[IMx]JMx]LM] : IM, JM, LM sont les dims en x, y, z (def: $dim) 105 [-p PHYS] : compilation avec la physique libf/phyPHYS, (def: lmd) 106 [-prod / -dev / -debug] : compilation en mode production (default) / developpement / debug . 107 [-c false/MPI1/MPI2] : couple ocean : MPI1/MPI2/false (def: false) 108 [-v false/true] : avec ou sans vegetation (def: false) 109 [-chimie INCA/false] : avec ou sans model de chimie INCA (def: false) 110 [-parallel none/mpi/omp/mpi_omp] : parallelisation (default: none) : mpi, openmp ou mixte mpi_openmp 111 [-g GRI] : conf. grille dans dyn3d/GRI_xy.h (def: reg inclue un zoom) 112 [-io IO] : choix d une librairie I/O, experts (def: ioipsl) 113 [-include INCLUDES] : variables supplementaires pour include 114 [-cpp CPP_KEY] : cle cpp supplementaires 115 [-adjnt] : adjoint, a remettre en route ... 116 [-mem] : version memoire reduite (si en mode parallele) 117 [-filtre NOMFILTRE] : prend le filtre dans libf/NOMFILTRE (def: filtrez) 118 [-link LINKS] : liens optionels avec d autres librairies 119 [-ext_src path] : chemin d un repertoire source avec des sources externe a compiler avec le modele 120 [-arch nom_arch] : nom de l architecture cible 121 exec : executable genere 101 makelmdz [options] -arch nom_arch exec 102 [-h] : brief help 103 [-d [[IMx]JMx]LM] : IM, JM, LM are the dimensions in x, y, z (default: $dim) 104 [-p PHYS] : set of physical parametrizations (in libf/phyPHYS), (default: lmd) 105 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 106 [-c false/MPI1/MPI2] : coupling with ocean model : MPI1/MPI2/false (default: false) 107 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false) 108 false : no vegetation model 109 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 110 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 111 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 112 [-chimie INCA/false] : with INCA chemistry model or without (default: false) 113 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 114 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) 115 [-io IO] : Input/Output library (default: ioipsl) 116 [-include INCLUDES] : extra include path to add 117 [-cpp CPP_KEY] : additional preprocessing definitions 118 [-adjnt] : adjoint model, not operational ... 119 [-mem] : reduced memory dynamics (if in parallel mode) 120 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 121 [-link LINKS] : additional links with other libraries 122 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 123 [-ext_src path] : path to an additional set of routines to compile with the model 124 -arch nom_arch : target architecture 125 exec : executable to build 122 126 fin 123 127 exit;; … … 125 129 dim=$2 ; shift ; shift ;; 126 130 127 "-O")128 echo "option obsolete dans ce makegcm"129 exit;;130 131 131 "-p") 132 132 physique="$2" ; shift ; shift ;; … … 166 166 167 167 "-adjnt") 168 echo " option a reactiver";exit168 echo "not operational ... work to be done here ";exit 169 169 opt_dep="$opt_dep adjnt" ; adjnt="-ladjnt -ldyn3d " 170 170 optim="$optim -Dadj" ; shift ;; … … 351 351 fi 352 352 353 if [[ "$veget" == "true" ]] 354 then 353 if [[ "$veget" == "orchidee2.0" ]] 354 then 355 # orchidee2.0 : 356 # Compile with ORCHIDEE 2.0 (or more recent) 357 CPP_KEY="$CPP_KEY CPP_VEGET" 358 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 359 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}orchidee " 360 elif [[ "$veget" == "orchidee1.9" ]] 361 then 362 # orchidee1.9 : 363 # Compile with ORCHIDEE version up to the inclusion of OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 364 CPP_KEY="$CPP_KEY CPP_VEGET ORCHIDEE_NOOPENMP" 365 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 366 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 367 elif [[ "$veget" == "true" ]] 368 then 369 # true : 370 # Obsolete, for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 371 # For this case, cpp flag ORCHIDEE_NOOPENMP must be added to the makelmdz_fcm arguments 355 372 CPP_KEY="$CPP_KEY CPP_VEGET" 356 373 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 357 374 LIB="${LIB} -L${ORCH_LIBDIR} -l${LIBPREFIX}sechiba -l${LIBPREFIX}parameters -l${LIBPREFIX}stomate -l${LIBPREFIX}parallel -l${LIBPREFIX}orglob" 375 elif [[ "$veget" != "false" ]] 376 then 377 echo "Option -v $veget does not exist" 378 echo "Use ./makelmdz -h for more information" 379 exit 358 380 fi 359 381 … … 479 501 fi 480 502 481 if [[ $veget == "true" ]]503 if [[ $veget != "false" ]] 482 504 then 483 505 SUFF_NAME=${SUFF_NAME}_orch -
LMDZ5/trunk/makelmdz_fcm
r1757 r1772 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 ;; … … 249 248 fi 250 249 251 if [[ "$veget" == "true" ]] 252 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 253 269 CPP_KEY="$CPP_KEY CPP_VEGET" 254 270 INCLUDE="${INCLUDE} -I${ORCH_INCDIR}" 255 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 256 277 fi 257 278 … … 395 416 fi 396 417 397 if [[ $veget == "true" ]]418 if [[ $veget != "false" ]] 398 419 then 399 420 SUFF_NAME=${SUFF_NAME}_orch
Note: See TracChangeset
for help on using the changeset viewer.