Changeset 1403 for trunk/LMDZ.COMMON/makelmdz_fcm
- Timestamp:
- Mar 31, 2015, 3:49:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r1391 r1403 40 40 LIBOGCM=$LMDGCM/libo 41 41 LIBFGCM=$LMDGCM/libf 42 DYN_COMMON_PATH=$LIBFGCM/dyn3d_common 42 43 # path for optional packages, but default set to ".void_dir" 44 FILTRE_PATH=$LMDGCM/.void_dir 45 DYN_PHYS_PATH=$LMDGCM/.void_dir 46 DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir 43 47 RRTM_PATH=$LMDGCM/.void_dir 44 48 SISVAT_PATH=$LMDGCM/.void_dir … … 87 91 [-chimie INCA/false] : (Earth) with INCA chemistry model or without (default: false) 88 92 [-cosp cosp/false] : (Earth) add the cosp model (default: false) 93 [-sisvat true/false] : (Earth) compile with/without sisvat package (default: false) 94 [-rrtm true/false] : (Earth) compile with/without rrtm package (default: false) 89 95 [-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp 90 96 [-g GRI] : grid configuration in dyn3d/GRI_xy.h (default: reg, inclues a zoom) … … 236 242 fi 237 243 244 phys_root=$physique 245 if [[ "${physique:0:3}" == "lmd" ]] ; then phys_root=lmd ; fi 246 if [[ "${physique:0:3}" == "mar" ]] ; then phys_root=mar ; fi 247 if [[ "${physique:0:4}" == "mars" ]] ; then phys_root=mars ; fi 248 if [[ "${physique:0:3}" == "std" ]] ; then phys_root=std ; fi 249 if [[ "${physique:0:5}" == "venus" ]] ; then phys_root=venus ; fi 250 if [[ "${physique:0:5}" == "titan" ]] ; then phys_root=titan ; fi 251 if [[ "${physique:0:3}" == "dev" ]] ; then phys_root=dev ; fi 252 238 253 if [[ "$physique" != "nophys" ]] 239 254 then 240 255 #We'll use some physics 241 256 CPP_KEY="$CPP_KEY CPP_PHYS" 242 if [[ "${phys ique:0:3}" == "lmd" ]]257 if [[ "${phys_root}" == "lmd" ]] 243 258 then 244 259 #For lmd physics, default planet type is Earth 245 260 CPP_KEY="$CPP_KEY CPP_EARTH" 246 261 fi 262 # set the dyn/phys interface path 263 DYN_PHYS_PATH="${LIBFGCM}/dynlonlat_phylonlat" 264 DYN_PHYS_SUB_PATH="${LIBFGCM}/dynlonlat_phylonlat/phy${phys_root}" 265 fi 266 267 if [[ "$filtre" == "filtrez" ]] 268 then 269 FILTRE_PATH=${LIBFGCM}/$filtre 247 270 fi 248 271 … … 360 383 fi 361 384 362 if [[ "$physique" == "titan" ]] 385 # for Titan (but could be used by others as well), there is also "chimtitan" 386 if [[ -d ${LIBFGCM}/chim${physique} ]] 363 387 then 364 388 CHEM_PATH="${LIBFGCM}/chim${physique}" … … 463 487 if (( $dimension == 1 )) 464 488 then 489 CPP_KEY="$CPP_KEY CPP_1D" 465 490 ##in 1D, add dyn3d to include path (because main prog is in physics) 466 INCLUDE="$INCLUDE -Ilibf/dyn3d" 467 # echo pas de dynamique 468 # dyn="DYN= L_DYN=-ldyn3d " 491 INCLUDE="$INCLUDE -Ilibf/dyn3d -Ilibf/dyn3d_common" 492 ## no filtre in 1d: 493 FILTRE_PATH=$LMDGCM/.void_dir 494 ## no need to compile all routines in dyn3d_common either: 495 DYN_COMMON_PATH=$LMDGCM/.void_dir 496 ## no need to compile all routines in dynlmdz_phy... ; 497 ## (because key ones are included in 1D main program) 498 DYN_PHYS_PATH=$LMDGCM/.void_dir 499 DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir 469 500 fi 470 501 … … 523 554 else 524 555 SUFF_NAME=${SUFF_NAME}_seq 525 DYN=dyn${dimc}d 526 ## specific stuff for 1D model (needs includes which are in dyn3d) 527 if (( $dimension == 1 )) ; then 528 SUFF_NAME=${SUFF_NAME} 529 DYN=dyn3d 556 if (( $dimension == 1 )) 557 then 558 # dynamics-related routines in"dyn1d" subdirectory of phy${physique} 559 DYN=phy${physique}/dyn1d 560 else 561 DYN=dyn${dimc}d 530 562 fi 531 563 fi … … 561 593 echo "%LIBO $LIBOGCM" >> $config_fcm 562 594 echo "%DYN $DYN" >> $config_fcm 595 echo "%DYN_COMMON $DYN_COMMON_PATH" >> $config_fcm 596 echo "%FILTRE $FILTRE_PATH" >> $config_fcm 563 597 echo "%PHYS phy${physique}" >> $config_fcm 598 echo "%DYN_PHYS $DYN_PHYS_PATH" >> $config_fcm 599 echo "%DYN_PHYS_SUB $DYN_PHYS_SUB_PATH" >> $config_fcm 564 600 echo "%RRTM $RRTM_PATH" >> $config_fcm 565 601 echo "%SISVAT $SISVAT_PATH" >> $config_fcm … … 594 630 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/tmp tmp_src 595 631 596 #eventual cleanup for SISVAT597 #sed -e 's/^src::sisvat/#src::sisvat/' bld.cfg > bld.tmp598 #mv bld.tmp bld.cfg599 600 #eventual cleanup for RRTM601 #sed -e 's/^src::rrtm/#src::rrtm/' bld.cfg > bld.tmp602 #mv bld.tmp bld.cfg603 604 632 605 633 if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset
for help on using the changeset viewer.