Changeset 4171 for LMDZ6/branches/LMDZ-ECRAD/makelmdz_fcm
- Timestamp:
- Jun 17, 2022, 4:24:49 PM (3 years ago)
- Location:
- LMDZ6/branches/LMDZ-ECRAD
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ-ECRAD
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ-ECRAD/makelmdz_fcm
r3880 r4171 23 23 couple=false 24 24 veget=false 25 sisvat=false26 25 inlandsis=false 27 26 rrtm=false 28 ecrad=false 27 rad="old" 29 28 dust=false 30 29 strataer=false 31 30 chimie=false 32 31 parallel=none 33 paramem=" par"32 paramem="mem" 34 33 compil_mod=prod 35 34 io=ioipsl … … 41 40 full='' 42 41 libphy=false 42 isotopes=false 43 isoverif=false 44 diagiso=false 45 isotrac=false 46 force_compile=false 43 47 44 48 arch_defined="FALSE" … … 55 59 DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir 56 60 PHY_COMMON_PATH=$LMDGCM/.void_dir 57 RRTM_PATH=$LMDGCM/.void_dir 61 RAD_PATH=$LMDGCM/.void_dir 62 INLANDSIS_PATH=$LMDGCM/.void_dir 58 63 ECRAD_PATH=$LMDGCM/.void_dir 59 64 DUST_PATH=$LMDGCM/.void_dir 60 65 STRATAER_PATH=$LMDGCM/.void_dir 61 SISVAT_PATH=$LMDGCM/.void_dir62 66 COSP_PATH=$LMDGCM/.void_dir 63 67 fcm_path=$LMDGCM/tools/fcm/bin … … 67 71 ######################################################################## 68 72 69 CPP_KEY=" "73 CPP_KEY="IN_LMDZ" 70 74 INCLUDE="" 71 75 LIB="" … … 101 105 [-cosp2 true/false] : compile with/without cosp2 package (default: false) 102 106 [-cospv2 true/false] : compile with/without cospv2 package (default: false) 103 [-sisvat true/false] : compile with/without sisvat package (default: false)104 107 [-inlandsis true/false] : compile with/without inlandsis package (default: false) 105 108 [-rrtm true/false] : compile with/without rrtm package (default: false) 106 [- ecrad true/false] : compile with/without ecrad package (default: false)109 [-rad old/rrtm/ecrad] : compile with old/rrtm/ecrad radiatif code (default: old) 107 110 [-dust true/false] : compile with/without the dust package by Boucher and co (default: false) 108 111 [-strataer true/false] : compile with/without the strat aer package by Boucher and co (default: false) 112 [-isotopes true/false] : compile with/without water isotopes in the physics 113 [-isoverif true/false] : compile with/without verifications for water isotopes in the physics 114 [-diagiso true/false] : compile with/without special diagnostics for water isotopes in the physics 115 [-isotrac true/false] : compile with/without tracers of water isotopes in the physics 109 116 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 110 117 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) … … 113 120 [-cpp CPP_KEY] : additional preprocessing definitions 114 121 [-adjnt] : adjoint model, not operational ... 115 [-mem] : reduced memory dynamics ( ifin parallel mode)122 [-mem] : reduced memory dynamics (obsolete flag; always on in parallel mode) 116 123 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 117 124 [-link LINKS] : additional links with other libraries … … 122 129 [-ext_src path] : path to an additional set of routines to compile with the model 123 130 [-arch_path path] : path to architecture files (default: $arch_default_path) 131 [-force_compile] : recompile although there seems to be an on-going compilation 124 132 -arch nom_arch : target architecture 125 133 exec : executable to build … … 154 162 veget="$2" ; shift ; shift ;; 155 163 156 "-sisvat")157 sisvat="$2" ; shift ; shift ;;158 159 164 "-inlandsis") 160 inlandsis="$2" ; shift ; shift ;;165 inlandsis="$2" ; shift ; shift ;; 161 166 162 167 "-rrtm") 163 rrtm="$2"; shift ; shift ;;164 165 "- ecrad")166 ecrad="$2" ; shift ; shift ;;168 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old" ; else rad="rrtm" ; fi ; shift ; shift ;; 169 170 "-rad") 171 rad="$2" ; shift ; shift ;; 167 172 168 173 "-dust") … … 174 179 "-chimie") 175 180 chimie="$2" ; shift ; shift ;; 181 182 "-isotopes") 183 isotopes="$2" ; shift ; shift ;; 184 185 "-isoverif") 186 isoverif="$2" ; shift ; shift ;; 187 188 "-diagiso") 189 diagiso="$2" ; shift ; shift ;; 190 191 "-isotrac") 192 isotrac="$2" ; shift ; shift ;; 176 193 177 194 "-parallel") … … 199 216 200 217 "-mem") 218 echo "option -mem is obsolete (now always on in parallel)" 201 219 paramem="mem" ; shift ;; 202 220 … … 227 245 "-arch_path") 228 246 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 247 248 "-force_compile") 249 force_compile=true ; shift ;; 229 250 230 251 *) … … 318 339 if [[ "${physique:0:5}" == "venus" ]] ; then phys_root=venus ; fi 319 340 if [[ "${physique:0:5}" == "titan" ]] ; then phys_root=titan ; fi 320 if [[ "${physique:0:3}" == "mar" ]] ; then phys_root=mar ; fi321 341 if [[ "${physique:0:3}" == "dev" ]] ; then phys_root=dev ; fi 322 342 … … 347 367 INCLUDE="$INCLUDE -I${INCA_INCDIR}" 348 368 LIB="$LIB -L${INCA_LIBDIR} -lchimie" 369 fi 370 371 if [[ "$isotopes" == "true" ]] 372 then 373 CPP_KEY="$CPP_KEY ISO" 374 fi 375 376 if [[ "$isoverif" == "true" ]] 377 then 378 CPP_KEY="$CPP_KEY ISOVERIF" 379 fi 380 381 if [[ "$diagiso" == "true" ]] 382 then 383 CPP_KEY="$CPP_KEY DIAGISO" 384 fi 385 386 if [[ "$isotrac" == "true" ]] 387 then 388 CPP_KEY="$CPP_KEY ISOTRAC" 349 389 fi 350 390 … … 420 460 fi 421 461 422 if [[ "$sisvat" == "true" ]]423 then424 CPP_KEY="$CPP_KEY CPP_SISVAT"425 SISVAT_PATH="$LIBFGCM/%PHYS/sisvat"426 fi427 428 462 if [[ "$inlandsis" == "true" ]] 429 463 then … … 433 467 434 468 435 if [[ "$r rtm" == "true" ]]469 if [[ "$rad" == "rrtm" ]] 436 470 then 437 471 CPP_KEY="$CPP_KEY CPP_RRTM" 438 RRTM_PATH="$LIBFGCM/%PHYS/rrtm" 472 RAD_PATH="$LIBFGCM/%PHYS/rrtm" 473 fi 474 if [[ "$rad" == "ecrad" ]] 475 then 476 CPP_KEY="$CPP_KEY CPP_ECRAD" 477 RAD_PATH="$LIBFGCM/%PHYS/ecrad" 439 478 fi 440 479 … … 525 564 if [[ -f dimensions.h ]] 526 565 then 527 echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs' 528 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 529 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 530 echo vous pouvez continuer en repondant oui. 531 echo "Voulez-vous vraiment continuer?" 532 echo "" 533 echo "WARNING: you are probably already compiling the model somewhere else." 534 echo "Wait until the first compilation is finished before launching this one." 535 echo "If you are sure that you are not compiling elsewhere, just answer " 536 echo "yes (or 'oui') to the question below to proceed." 537 echo "Do you wish to continue?" 538 read reponse 539 if [[ $reponse == "oui" || $reponse == "yes" ]] 540 then 541 \rm -f $LIBFGCM/grid/dimensions.h 542 else 543 exit 544 fi 566 if [[ $force_compile == true ]] 567 then 568 \rm -f $LIBFGCM/grid/dimensions.h 569 else 570 echo "WARNING: you are probably already compiling the model somewhere else." 571 echo "Wait until the first compilation is finished before launching this one." 572 echo "If you are sure that you are not compiling elsewhere, " 573 echo "run makelmdz_fcm with option -force_compile" 574 exit 1 575 fi 545 576 fi 546 577 … … 671 702 fi 672 703 704 if [[ "$isotopes" == "true" ]] 705 then 706 SUFF_NAME=${SUFF_NAME}_iso 707 fi 708 if [[ "$isoverif" == "true" ]] 709 then 710 SUFF_NAME=${SUFF_NAME}_isoverif 711 fi 712 if [[ "$isotrac" == "true" ]] 713 then 714 SUFF_NAME=${SUFF_NAME}_isotrac 715 fi 716 if [[ "$diagiso" == "true" ]] 717 then 718 SUFF_NAME=${SUFF_NAME}_diagiso 719 fi 720 673 721 if [[ $libphy == "true" ]] 674 722 then … … 707 755 echo "%DYN_PHYS $DYN_PHYS_PATH" >> $config_fcm 708 756 echo "%DYN_PHYS_SUB $DYN_PHYS_SUB_PATH" >> $config_fcm 709 echo "%R RTM $RRTM_PATH" >> $config_fcm757 echo "%RAD $RAD_PATH" >> $config_fcm 710 758 echo "%ECRAD $ECRAD_PATH" >> $config_fcm 711 759 echo "%DUST $DUST_PATH" >> $config_fcm 712 760 echo "%STRATAER $STRATAER_PATH" >> $config_fcm 713 echo "%SISVAT $SISVAT_PATH" >> $config_fcm714 761 echo "%INLANDSIS $INLANDSIS_PATH" >> $config_fcm 715 762 echo "%COSP $COSP_PATH" >> $config_fcm … … 732 779 fi 733 780 781 set +e 782 734 783 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 735 784 ./build_gcm ${fcm_path} -j $job $full 785 build_status=$? 736 786 737 787 err=$? … … 752 802 \rm -f $LIBFGCM/grid/dimensions.h 753 803 fi 804 805 exit $build_status
Note: See TracChangeset
for help on using the changeset viewer.