Changeset 1650 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Jan 25, 2017, 4:02:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r1540 r1650 27 27 sisvat=false 28 28 rrtm=false 29 dust=false 30 strataer=false 29 31 bands="" 30 32 scatterers="" 31 33 full='' 32 34 35 arch_defined="FALSE" 36 arch_path="arch" 37 arch_default_path="arch" 38 33 39 # guess a default 'arch' 34 40 arch="local" # start with assuming we're on a local machine with local arch file 41 arch_defined="TRUE" # and thus also set arch_defined to true 35 42 ## try to recognise machine and infer arch from it 36 43 machine=`hostname` … … 120 127 [-sisvat true/false] : (Earth) compile with/without sisvat package (default: false) 121 128 [-rrtm true/false] : (Earth) compile with/without rrtm package (default: false) 129 [-dust true/false] : (Earth) compile with/without the dust package from Boucher et al. (default: false) 130 [-strataer true/false] : (Earth) compile with/without the strat aer package from Boucher et al. (default: false) 122 131 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 123 132 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) … … 131 140 [-full] : full (re-)compilation (from scratch) 132 141 [-ext_src path] : path to an additional set of routines to compile with the model 142 [-arch_path path] : path to architecture files (default: $arch_default_path) 133 143 -arch arch : target architecture 134 144 exec : executable to build … … 189 199 rrtm="$2" ; shift ; shift ;; 190 200 201 "-dust") 202 dust="$2" ; shift ; shift ;; 203 204 "-strataer") 205 strataer="$2" ; shift ; shift ;; 206 191 207 "-mem") 192 208 paramem="mem" ; shift ;; … … 205 221 206 222 "-arch") 207 arch=$2 ; shift ; shift ;; 223 arch=$2 ; arch_defined="TRUE" ; shift ; shift ;; 224 225 "-arch_path") 226 arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;; 208 227 209 228 *) … … 219 238 rm -rf .void_dir 220 239 mkdir .void_dir 221 rm -f arch.path 222 if [[ -r arch/arch-${arch}.path ]] 223 then 224 ln -s arch/arch-${arch}.path ./arch.path 240 241 if [[ "$arch_defined" == "TRUE" ]] 242 then 243 rm -f arch.path 244 rm -f arch.fcm 245 rm -f arch.env 246 247 if test -f $arch_path/arch-${arch}.path 248 then 249 ln -s $arch_path/arch-${arch}.path arch.path 250 elif test -f $arch_default_path/arch-${arch}.path 251 then 252 ln -s $arch_default_path/arch-${arch}.path arch.path 253 fi 254 255 if test -f $arch_path/arch-${arch}.fcm 256 then 257 ln -s $arch_path/arch-${arch}.fcm arch.fcm 258 elif test -f $arch_default_path/arch-${arch}.fcm 259 then 260 ln -s $arch_default_path/arch-${arch}.fcm arch.fcm 261 fi 262 263 if test -f $arch_path/arch-${arch}.env 264 then 265 ln -s $arch_path/arch-${arch}.env arch.env 266 elif test -f $arch_default_path/arch-${arch}.env 267 then 268 ln -s $arch_default_path/arch-${arch}.env arch.env 269 else 270 ln -s .void_file arch.env 271 fi 272 # source architecture PATH and ENV files 273 source arch.env 225 274 source arch.path 226 275 else 227 echo "Error: missing arch/arch-${arch}.path file !" 228 exit 229 fi 230 rm -f arch.fcm 231 if [[ -r arch/arch-${arch}.fcm ]] 232 then 233 ln -s arch/arch-${arch}.fcm arch.fcm 234 else 235 echo "Error: missing arch/arch-${arch}.fcm file !" 236 exit 237 fi 276 echo "You must define a target architecture" 277 exit 1 278 fi 279 238 280 ######################################################################## 239 281 # Definition des clefs CPP, des chemins des includes et modules … … 486 528 CPP_KEY="$CPP_KEY CPP_RRTM" 487 529 src_dirs="$src_dirs phy${physique}/rrtm" 530 fi 531 532 if [[ "$dust" == "true" ]] 533 then 534 CPP_KEY="$CPP_KEY CPP_Dust" 535 src_dirs="$src_dirs phy${physique}/Dust" 536 fi 537 538 if [[ "$strataer" == "true" ]] 539 then 540 CPP_KEY="$CPP_KEY CPP_StratAer" 541 src_dirs="$src_dirs phy${physique}/StratAer" 488 542 fi 489 543
Note: See TracChangeset
for help on using the changeset viewer.