Changeset 1650 for trunk/LMDZ.COMMON/makelmdz_fcm
- Timestamp:
- Jan 25, 2017, 4:02:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r1540 r1650 24 24 sisvat=false 25 25 rrtm=false 26 dust=false 27 strataer=false 26 28 chimie=false 27 29 chemistry=false … … 38 40 libphy=false 39 41 42 arch_defined="FALSE" 43 arch_path="arch" 44 arch_default_path="arch" 45 40 46 LMDGCM=`/bin/pwd` 41 47 LIBOGCM=$LMDGCM/libo … … 48 54 PHY_COMMON_PATH=$LMDGCM/.void_dir 49 55 RRTM_PATH=$LMDGCM/.void_dir 56 DUST_PATH=$LMDGCM/.void_dir 57 STRATAER_PATH=$LMDGCM/.void_dir 50 58 SISVAT_PATH=$LMDGCM/.void_dir 51 59 COSP_PATH=$LMDGCM/.void_dir … … 85 93 [-p PHYS] : set of physical parametrizations (in libf/phyPHYS), (default: lmd) 86 94 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug . 87 [-c false/MPI1/OMCT] : coupling with ocean model : MPI1/OMCT/false (default: false)88 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)95 [-c false/MPI1/OMCT] : (Earth) coupling with ocean model : MPI1/OMCT/false (default: false) 96 [-v false/orchidee2.0/orchidee1.9/true] : (Earth) version of the vegetation model to include (default: false) 89 97 false : no vegetation model 90 98 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) … … 95 103 [-sisvat true/false] : (Earth) compile with/without sisvat package (default: false) 96 104 [-rrtm true/false] : (Earth) compile with/without rrtm package (default: false) 105 [-dust true/false] : (Earth) compile with/without the dust package by Boucher and co (default: false) 106 [-strataer true/false] : (Earth) compile with/without the strat aer package by Boucher and co (default: false) 97 107 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 98 108 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) … … 108 118 [-fcm_path path] : path to the fcm tool (default: tools/fcm/bin) 109 119 [-ext_src path] : path to an additional set of routines to compile with the model 120 [-arch_path path] : path to architecture files (default: $arch_default_path) 110 121 -arch arch : target architecture 111 122 exec : executable to build … … 152 163 rrtm="$2" ; shift ; shift ;; 153 164 165 "-dust") 166 dust="$2" ; shift ; shift ;; 167 168 "-strataer") 169 strataer="$2" ; shift ; shift ;; 170 154 171 "-chimie") 155 172 chimie="$2" ; shift ; shift ;; … … 197 214 198 215 "-arch") 199 arch=$2 ; shift ; shift ;; 216 arch=$2 ; arch_defined="TRUE" ; shift ; shift ;; 217 218 "-arch_path") 219 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 200 220 201 221 *) … … 227 247 rm -rf .void_dir 228 248 mkdir .void_dir 229 rm -f arch.path 230 ln -s arch/arch-${arch}.path ./arch.path 231 source arch.path 249 250 if [[ "$arch_defined" == "TRUE" ]] 251 then 252 rm -f arch.path 253 rm -f arch.fcm 254 rm -f arch.env 255 256 if test -f $arch_path/arch-${arch}.path 257 then 258 ln -s $arch_path/arch-${arch}.path arch.path 259 elif test -f $arch_default_path/arch-${arch}.path 260 then 261 ln -s $arch_default_path/arch-${arch}.path arch.path 262 fi 263 264 if test -f $arch_path/arch-${arch}.fcm 265 then 266 ln -s $arch_path/arch-${arch}.fcm arch.fcm 267 elif test -f $arch_default_path/arch-${arch}.fcm 268 then 269 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 270 fi 271 272 if test -f $arch_path/arch-${arch}.env 273 then 274 ln -s $arch_path/arch-${arch}.env arch.env 275 elif test -f $arch_default_path/arch-${arch}.env 276 then 277 ln -s $arch_default_path/arch-${arch}.env arch.env 278 else 279 ln -s .void_file arch.env 280 fi 281 # source architecture PATH and ENV files 282 source arch.env 283 source arch.path 284 else 285 echo "You must define a target architecture" 286 exit 1 287 fi 232 288 233 289 ######################################################################## … … 372 428 fi 373 429 430 if [[ "$dust" == "true" ]] 431 then 432 CPP_KEY="$CPP_KEY CPP_Dust" 433 DUST_PATH="$LIBFGCM/%PHYS/Dust" 434 fi 435 436 if [[ "$strataer" == "true" ]] 437 then 438 CPP_KEY="$CPP_KEY CPP_StratAer" 439 STRATAER_PATH="$LIBFGCM/%PHYS/StratAer" 440 fi 441 374 442 if [[ $io == ioipsl ]] 375 443 then … … 642 710 echo "%DYN_PHYS_SUB $DYN_PHYS_SUB_PATH" >> $config_fcm 643 711 echo "%RRTM $RRTM_PATH" >> $config_fcm 712 echo "%DUST $DUST_PATH" >> $config_fcm 713 echo "%STRATAER $STRATAER_PATH" >> $config_fcm 644 714 echo "%SISVAT $SISVAT_PATH" >> $config_fcm 645 715 echo "%COSP $COSP_PATH" >> $config_fcm
Note: See TracChangeset
for help on using the changeset viewer.