Changeset 979 for trunk/LMDZ.COMMON/makelmdz_fcm
- Timestamp:
- Jun 5, 2013, 2:41:09 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz_fcm
r957 r979 25 25 chemistry=false 26 26 parallel=none 27 paramem="par" 27 28 compil_mod=prod 28 29 io=ioipsl … … 80 81 [-cpp CPP_KEY] : additional preprocessing definitions 81 82 [-adjnt] : adjoint model, not operational ... 83 [-mem] : reduced memory dynamics (if in parallel mode) 82 84 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 83 85 [-link LINKS] : additional links with other libraries … … 142 144 cosp="$2" ; shift ; shift ;; 143 145 146 "-mem") 147 paramem="mem" ; shift ;; 144 148 145 149 "-filtre") … … 164 168 165 169 ############################################################### 166 # mettre le chemin du fcm dans le path170 # path to fcm 167 171 ############################################################### 172 # handle case when provided path to fcm was given as a relative 173 # path (from makelmdz_fcm script directory) and not an absolute path 174 if [[ ${fcm_path:0:1} != "/" ]] ; then 175 # prepend with makelmdz_fcm location 176 fcm_path=$(cd $(dirname $0) ; pwd)"/"${fcm_path} 177 fi 178 179 # add fcm_path to PATH 168 180 export PATH=${fcm_path}:${PATH} 169 181 170 echo " Chemin du fcm utlise :"171 which fcm 182 echo "Path to fcm:" 183 echo ${fcm_path} 172 184 173 185 ############################################################### … … 295 307 # on cree ou remplace le fichier des dimensions 296 308 ######################################################################## 309 310 cd $LIBFGCM/grid 311 if [[ -f dimensions.h ]] 312 then 313 echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs' 314 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 315 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 316 echo vous pouvez continuer en repondant oui. 317 echo "Voulez-vous vraiment continuer?" 318 echo "" 319 echo "WARNING: you are probably already compiling the model somewhere else." 320 echo "Wait until the first compilation is finished before launching this one." 321 echo "If you are sure that you are not compiling elsewhere, just answer " 322 echo "yes (or 'oui') to the question below to proceed." 323 echo "Do you wish to continue?" 324 read reponse 325 if [[ $reponse == "oui" || $reponse == "yes" ]] 326 then 327 \rm -f $LIBFGCM/grid/dimensions.h 328 else 329 exit 330 fi 331 fi 332 297 333 298 334 cd $LIBFGCM/grid/dimension … … 393 429 then 394 430 SUFF_NAME=${SUFF_NAME}_para 395 DYN=dyn${dimc}dpar 431 DYN=dyn${dimc}d${paramem} 432 if [[ "$paramem" == "mem" ]] 433 then 434 SUFF_NAME=${SUFF_NAME}_${paramem} 435 fi 396 436 else 397 437 SUFF_NAME=${SUFF_NAME}_seq … … 463 503 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config 464 504 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/tmp tmp_src 505 506 if [[ -r $LIBFGCM/grid/dimensions.h ]] 507 then 508 # Cleanup: remove dimension.h file 509 \rm -f $LIBFGCM/grid/dimensions.h 510 fi
Note: See TracChangeset
for help on using the changeset viewer.