Changeset 4368 for LMDZ6/branches/Ocean_skin/makelmdz_fcm
- Timestamp:
- Dec 6, 2022, 12:01:16 AM (2 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
- Property svn:mergeinfo changed
-
LMDZ6/branches/Ocean_skin/makelmdz_fcm
r4013 r4368 25 25 inlandsis=false 26 26 rrtm=false 27 rad="old "27 rad="oldrad" 28 28 dust=false 29 29 strataer=false … … 44 44 diagiso=false 45 45 isotrac=false 46 force_compile=false 47 cplocninca=false 46 48 47 49 arch_defined="FALSE" … … 93 95 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 94 96 [-c false/MPI1/OMCT] : coupling with ocean model : MPI1/OMCT/false (default: false) 95 [-v false/orchidee 2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)97 [-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false) 96 98 false : no vegetation model 97 orchidee2.1 : compile using ORCHIDEE 2.1 (or more recent version) 99 orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher 100 orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk 98 101 orchidee2.0 : compile using ORCHIDEE 2.0 99 102 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 100 103 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 101 104 [-chimie INCA/false] : with INCA chemistry model or without (default: false) 105 [-cplocninca ] : allow transfer of species from PISCES to INCA (default: false) 102 106 [-cosp true/false] : compile with/without cosp package (default: false) 103 107 [-cosp2 true/false] : compile with/without cosp2 package (default: false) … … 105 109 [-inlandsis true/false] : compile with/without inlandsis package (default: false) 106 110 [-rrtm true/false] : compile with/without rrtm package (default: false) 107 [-rad old /rrtm/ecrad] : compile with old/rrtm/ecrad radiatif code (default: old)111 [-rad oldrad/rrtm/ecrad] : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad) 108 112 [-dust true/false] : compile with/without the dust package by Boucher and co (default: false) 109 113 [-strataer true/false] : compile with/without the strat aer package by Boucher and co (default: false) … … 127 131 [-ext_src path] : path to an additional set of routines to compile with the model 128 132 [-arch_path path] : path to architecture files (default: $arch_default_path) 133 [-force_compile] : recompile although there seems to be an on-going compilation 129 134 -arch nom_arch : target architecture 130 135 exec : executable to build … … 163 168 164 169 "-rrtm") 165 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old " ; else rad="rrtm" ; fi ; shift ; shift ;;170 rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;; 166 171 167 172 "-rad") … … 176 181 "-chimie") 177 182 chimie="$2" ; shift ; shift ;; 183 184 "-cplocninca") 185 cplocninca=TRUE ; shift ;; 178 186 179 187 "-isotopes") … … 242 250 "-arch_path") 243 251 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 252 253 "-force_compile") 254 force_compile=true ; shift ;; 244 255 245 256 *) … … 423 434 fi 424 435 425 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]436 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ] 426 437 then 427 438 #NB: option 'true': for backward compatibility. To be used with ORCHIDEE tag 1.9-1.9.6 … … 438 449 CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT" 439 450 elif [[ "$veget" == "orchidee2.1" ]] ; then 451 CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC" 440 452 orch_libs="sechiba parameters stomate parallel orglob orchidee" 453 elif [[ "$veget" == "orchideetrunk" ]] ; then 454 orch_libs="orchidee" 441 455 else 442 456 orch_libs="sechiba parameters stomate parallel orglob" … … 524 538 fi 525 539 540 if [[ "$cplocninca" == "TRUE" ]] 541 then 542 CPP_KEY="${CPP_KEY} CPP_CPLOCNINCA" 543 fi 526 544 527 545 … … 551 569 if [[ -f dimensions.h ]] 552 570 then 553 echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs' 554 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 555 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 556 echo vous pouvez continuer en repondant oui. 557 echo "Voulez-vous vraiment continuer?" 558 echo "" 559 echo "WARNING: you are probably already compiling the model somewhere else." 560 echo "Wait until the first compilation is finished before launching this one." 561 echo "If you are sure that you are not compiling elsewhere, just answer " 562 echo "yes (or 'oui') to the question below to proceed." 563 echo "Do you wish to continue?" 564 read reponse 565 if [[ $reponse == "oui" || $reponse == "yes" ]] 566 then 567 \rm -f $LIBFGCM/grid/dimensions.h 568 else 569 exit 570 fi 571 if [[ $force_compile == true ]] 572 then 573 \rm -f $LIBFGCM/grid/dimensions.h 574 else 575 echo "WARNING: you are probably already compiling the model somewhere else." 576 echo "Wait until the first compilation is finished before launching this one." 577 echo "If you are sure that you are not compiling elsewhere, " 578 echo "run makelmdz_fcm with option -force_compile" 579 exit 1 580 fi 571 581 fi 572 582 … … 598 608 then 599 609 CPP_KEY="$CPP_KEY CPP_1D" 600 ##in 1D, add dyn3d to include path (because main prog is in physics)601 INCLUDE="$INCLUDE -Ilibf/dyn3d -Ilibf/dyn3d_common"602 610 ## no filtre in 1d: 603 611 FILTRE_PATH=$LMDGCM/.void_dir … … 652 660 653 661 SUFF_NAME=_${dim_full} 654 SUFF_NAME=${SUFF_NAME}_phy${physique} 662 SUFF_NAME=${SUFF_NAME}_phy${physique}_${rad} 655 663 656 664 if [[ "$parallel" != "none" ]] … … 773 781 fi 774 782 783 set +e 784 775 785 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 776 786 ./build_gcm ${fcm_path} -j $job $full 787 build_status=$? 777 788 778 789 err=$? … … 793 804 \rm -f $LIBFGCM/grid/dimensions.h 794 805 fi 806 807 exit $build_status
Note: See TracChangeset
for help on using the changeset viewer.