Changeset 4584 for LMDZ6/branches/Portage_acc/makelmdz
- Timestamp:
- Jun 23, 2023, 4:10:41 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Portage_acc/makelmdz
r4446 r4584 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 #=============================================================================== 509 INCLUDE="$INCLUDE ${NETCDF95_INCDIR}" 510 LIB="$LIB ${NETCDF95_LIBDIR} -l${LIBPREFIX}netcdf95" 511 478 512 if [[ $io == ioipsl ]] 479 513 then … … 521 555 522 556 523 if [[ "$inlandsis" == "true" ]]524 then525 CPP_KEY="$CPP_KEY CPP_INLANDSIS"526 src_dirs="$src_dirs phy${physique}/inlandsis"527 fi528 529 530 if [[ "$rad" == "rrtm" ]]531 then532 CPP_KEY="$CPP_KEY CPP_RRTM"533 src_dirs="$src_dirs phy${physique}/rrtm"534 fi535 if [[ "$rad" == "ecrad" ]]536 then537 CPP_KEY="$CPP_KEY CPP_ECRAD"538 src_dirs="$src_dirs phy${physique}/ecrad"539 fi540 541 if [[ "$dust" == "true" ]]542 then543 CPP_KEY="$CPP_KEY CPP_Dust"544 src_dirs="$src_dirs phy${physique}/Dust"545 fi546 547 if [[ "$strataer" == "true" ]]548 then549 CPP_KEY="$CPP_KEY CPP_StratAer"550 src_dirs="$src_dirs phy${physique}/StratAer"551 fi552 557 553 558 #add new ocean skin modelisation to source dir by default … … 801 806 # Execution du make 802 807 ################################################################# 803 echo $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \ 804 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \ 805 OPTIM90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 806 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 807 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \ 808 INCLUDE="$INCLUDE" \ 809 $filtre \ 810 LIBO=${LIBOGCM}/${nomlib} \ 811 "PHYS=$physique" \ 812 LIBPHY=${LIBPHY} \ 813 LIBPHY_COMMON=${LIBPHY_COMMON} \ 814 LIBDYN_PHYS=${LIBDYN_PHYS} \ 815 DIM=$dimc \ 816 FLAG_PARA=$FLAG_PARA \ 817 L_PHY="$lib_phy" \ 818 L_DYN_PHY="$libdyn_phy" \ 819 L_ADJNT=$adjnt \ 820 L_COSP="$lcosp" \ 821 L_COSP2="$lcosp2" \ 822 L_COSPV2="$lcospv2" \ 823 L_CHIMIE="$libchimie" \ 824 LOCAL_DIR="$localdir" \ 825 F77="$fcompiler" \ 826 F90="$fcompiler" \ 827 OPLINK="$LIB" \ 828 LINK="$linker" \ 829 GCM="$LMDGCM" \ 830 MOD_LOC_DIR=$mod_loc_dir \ 831 MOD_SUFFIX="mod" \ 832 AR=$arcommand \ 833 ARFLAGS="$arflags" \ 834 DIRMAIN=$dirmain \ 835 SOURCE=$source_code \ 836 PROG=$code 837 808 set -v 838 809 $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \ 839 810 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \ … … 871 842 PROG=$code 872 843 844 set +v 873 845 874 846 if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset
for help on using the changeset viewer.