Changeset 4669 for LMDZ6/branches/LMDZ_cdrag_LSCE/makelmdz
- Timestamp:
- Sep 4, 2023, 10:17:16 AM (16 months ago)
- Location:
- LMDZ6/branches/LMDZ_cdrag_LSCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_cdrag_LSCE
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_cdrag_LSCE/makelmdz
r4489 r4669 17 17 couple=false 18 18 veget=false 19 inlandsis=false 20 rrtm=false 21 rad="oldrad" 22 dust=false 23 strataer=false 19 24 chimie=false 20 25 parallel=none … … 27 32 cosp2=false 28 33 cospv2=false 29 inlandsis=false 30 rrtm=false 31 rad="" 32 dust=false 33 strataer=false 34 34 35 full="" 35 36 … … 110 111 [-p PHYS] : set of physical parametrizations (in libf/phyPHYS), (default: lmd) 111 112 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 112 [-c false/MPI1/ MPI2] : coupling with ocean model : MPI1/MPI2/false (default: false)113 [-c false/MPI1/OMCT] : coupling with ocean model : MPI1/OMCT/false (default: false) 113 114 [-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false) 114 115 false : no vegetation model 115 116 orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher 116 117 orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk 117 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version)118 orchidee2.0 : compile using ORCHIDEE 2.0 118 119 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 119 120 true : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6 … … 125 126 [-rrtm true/false] : compile with/without rrtm package (default: false) 126 127 [-rad oldrad/rrtm/ecrad] : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad) 127 [-dust true/false] : compile with/without the dust package from Boucher et al.(default: false)128 [-strataer true/false] : compile with/without the strat aer package from Boucher et al.(default: false)128 [-dust true/false] : compile with/without the dust package by Boucher and co (default: false) 129 [-strataer true/false] : compile with/without the strat aer package by Boucher and co (default: false) 129 130 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 130 131 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) … … 135 136 [-mem] : reduced memory dynamics (obsolete flag; always on in parallel mode) 136 137 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 137 [-full] : Full (re)compilation (from scratch)138 138 [-link LINKS] : additional links with other libraries 139 [-full] : full recompiling 139 140 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 140 141 [-ext_src path] : path to an additional set of routines to compile with the model … … 171 172 veget="$2" ; shift ; shift ;; 172 173 173 "-chimie")174 chimie="$2" ; shift ; shift ;;175 176 "-parallel")177 parallel="$2" ; shift ; shift ;;178 179 "-include")180 INCLUDE="$INCLUDE -I$2" ; shift ; shift ;;181 182 "-cpp")183 CPP_KEY="$CPP_KEY $2" ; shift ; shift ;;184 185 "-cosp")186 cosp="$2" ; shift ; shift ;;187 188 "-cosp2")189 cosp2="$2" ; shift ; shift ;;190 191 "-cosp2")192 cospv2="$2" ; shift ; shift ;;193 194 174 "-inlandsis") 195 175 inlandsis="$2" ; shift ; shift ;; … … 207 187 strataer="$2" ; shift ; shift ;; 208 188 189 "-chimie") 190 chimie="$2" ; shift ; shift ;; 191 192 "-parallel") 193 parallel="$2" ; shift ; shift ;; 194 195 "-include") 196 INCLUDE="$INCLUDE -I$2" ; shift ; shift ;; 197 198 "-cpp") 199 CPP_KEY="$CPP_KEY $2" ; shift ; shift ;; 200 201 "-cosp") 202 cosp="$2" ; shift ; shift ;; 203 204 "-cosp2") 205 cosp2="$2" ; shift ; shift ;; 206 207 "-cospv2") 208 cospv2="$2" ; shift ; shift ;; 209 209 210 "-mem") 210 211 echo "option -mem is obsolete (now always on in parallel)" … … 214 215 filtre=$2 ; shift ; shift ;; 215 216 217 "-link") 218 LIB="$LIB $2" ; shift ; shift ;; 219 220 "-fcm_path") 221 fcm_path=$2 ; shift ; shift ;; 222 223 "-ext_src") 224 EXT_SRC=$2 ; src_dirs="$src_dirs $EXT_SRC" ; shift ; shift ;; 225 216 226 "-full") 217 227 full="full" ; shift ;; 218 219 "-link")220 LIB="$LIB $2" ; shift ; shift ;;221 222 "-fcm_path")223 fcm_path=$2 ; shift ; shift ;;224 225 "-ext_src")226 EXT_SRC=$2 ; src_dirs="$src_dirs $EXT_SRC" ; shift ; shift ;;227 228 228 229 "-arch") … … 364 365 lib_phy='-lphy'"$physique"' -lphy_common' 365 366 CPP_KEY="$CPP_KEY CPP_PHYS" 366 if [[ $phys_root== "lmd" ]]367 368 369 367 if [[ "${phys_root}" == "lmd" ]] 368 then 369 #For lmd physics, default planet type is Earth 370 CPP_KEY="$CPP_KEY CPP_EARTH" 370 371 fi 371 372 fi … … 475 476 fi 476 477 478 if [[ "$inlandsis" == "true" ]] 479 then 480 CPP_KEY="$CPP_KEY CPP_INLANDSIS" 481 src_dirs="$src_dirs phy${physique}/inlandsis" 482 fi 483 484 485 if [[ "$rad" == "rrtm" ]] 486 then 487 CPP_KEY="$CPP_KEY CPP_RRTM" 488 src_dirs="$src_dirs phy${physique}/rrtm" 489 fi 490 if [[ "$rad" == "ecrad" ]] 491 then 492 CPP_KEY="$CPP_KEY CPP_ECRAD" 493 src_dirs="$src_dirs phy${physique}/ecrad" 494 fi 495 496 if [[ "$dust" == "true" ]] 497 then 498 CPP_KEY="$CPP_KEY CPP_Dust" 499 src_dirs="$src_dirs phy${physique}/Dust" 500 fi 501 502 if [[ "$strataer" == "true" ]] 503 then 504 CPP_KEY="$CPP_KEY CPP_StratAer" 505 src_dirs="$src_dirs phy${physique}/StratAer" 506 fi 507 477 508 #=============================================================================== 478 509 INCLUDE="$INCLUDE ${NETCDF95_INCDIR}" … … 524 555 525 556 526 if [[ "$inlandsis" == "true" ]]527 then528 CPP_KEY="$CPP_KEY CPP_INLANDSIS"529 src_dirs="$src_dirs phy${physique}/inlandsis"530 fi531 532 533 if [[ "$rad" == "rrtm" ]]534 then535 CPP_KEY="$CPP_KEY CPP_RRTM"536 src_dirs="$src_dirs phy${physique}/rrtm"537 fi538 if [[ "$rad" == "ecrad" ]]539 then540 CPP_KEY="$CPP_KEY CPP_ECRAD"541 src_dirs="$src_dirs phy${physique}/ecrad"542 fi543 544 if [[ "$dust" == "true" ]]545 then546 CPP_KEY="$CPP_KEY CPP_Dust"547 src_dirs="$src_dirs phy${physique}/Dust"548 fi549 550 if [[ "$strataer" == "true" ]]551 then552 CPP_KEY="$CPP_KEY CPP_StratAer"553 src_dirs="$src_dirs phy${physique}/StratAer"554 fi555 557 556 558 #add new ocean skin modelisation to source dir by default … … 804 806 # Execution du make 805 807 ################################################################# 806 echo $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \ 807 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \ 808 OPTIM90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 809 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 810 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 811 INCLUDE="$INCLUDE" \ 812 $filtre \ 813 LIBO=${LIBOGCM}/${nomlib} \ 814 "PHYS=$physique" \ 815 LIBPHY=${LIBPHY} \ 816 LIBPHY_COMMON=${LIBPHY_COMMON} \ 817 LIBDYN_PHYS=${LIBDYN_PHYS} \ 818 DIM=$dimc \ 819 FLAG_PARA=$FLAG_PARA \ 820 L_PHY="$lib_phy" \ 821 L_DYN_PHY="$libdyn_phy" \ 822 L_ADJNT=$adjnt \ 823 L_COSP="$lcosp" \ 824 L_COSP2="$lcosp2" \ 825 L_COSPV2="$lcospv2" \ 826 L_CHIMIE="$libchimie" \ 827 LOCAL_DIR="$localdir" \ 828 F77="$fcompiler" \ 829 F90="$fcompiler" \ 830 OPLINK="$LIB" \ 831 LINK="$linker" \ 832 GCM="$LMDGCM" \ 833 MOD_LOC_DIR=$mod_loc_dir \ 834 MOD_SUFFIX="mod" \ 835 AR=$arcommand \ 836 ARFLAGS="$arflags" \ 837 DIRMAIN=$dirmain \ 838 SOURCE=$source_code \ 839 PROG=$code 840 808 set -v 841 809 $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \ 842 810 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \ … … 874 842 PROG=$code 875 843 844 set +v 876 845 877 846 if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset
for help on using the changeset viewer.