Changeset 979 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Jun 5, 2013, 2:41:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r957 r979 19 19 chimie=false 20 20 parallel=none 21 paramem="par" 21 22 compil_mod=prod 22 23 io=ioipsl … … 29 30 30 31 # guess a default 'arch' 31 arch=" g95" # start with assuming we're on a Linux/Unix machine with g9532 arch="local" # start with assuming we're on a local machine with local arch file 32 33 ## try to recognise machine and infer arch from it 33 34 machine=`hostname` … … 126 127 [-cpp CPP_KEY] : additional preprocessing definitions 127 128 [-adjnt] : adjoint model, not operational ... 129 [-mem] : reduced memory dynamics (if in parallel mode) 128 130 [-filtre NOMFILTRE] : use filtre from libf/NOMFILTRE (default: filtrez) 129 131 [-link LINKS] : additional links with other libraries … … 138 140 139 141 "-p") 140 physique="$2" ; 142 physique="$2" ; shift ; shift ;; 141 143 142 144 "-s") … … 186 188 "-cosp") 187 189 cosp="$2" ; shift ; shift ;; 190 191 "-mem") 192 paramem="mem" ; shift ;; 188 193 189 194 "-filtre") … … 424 429 ######################################################################## 425 430 431 cd $LIBFGCM/grid 432 if [[ -f dimensions.h ]] 433 then 434 echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs' 435 echo "Attendez que la premiere compilation soit terminee pour relancer la suivante." 436 echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs," 437 echo vous pouvez continuer en repondant oui. 438 echo "Voulez-vous vraiment continuer?" 439 echo "" 440 echo "WARNING: you are probably already compiling the model somewhere else." 441 echo "Wait until the first compilation is finished before launching this one." 442 echo "If you are sure that you are not compiling elsewhere, just answer " 443 echo "yes (or 'oui') to the question below to proceed." 444 echo "Do you wish to continue?" 445 read reponse 446 if [[ $reponse == "oui" || $reponse == "yes" ]] 447 then 448 \rm -f $LIBFGCM/grid/dimensions.h 449 else 450 exit 451 fi 452 fi 453 454 426 455 cd $LIBFGCM/grid/dimension 427 456 ./makdim $dim … … 496 525 then 497 526 SUFF_NAME=${SUFF_NAME}_para 527 DYN=dyn${dimc}d${paramem} 528 if [[ "$paramem" == "mem" ]] 529 then 530 SUFF_NAME=${SUFF_NAME}_${paramem} 531 fi 498 532 else 499 533 SUFF_NAME=${SUFF_NAME}_seq 534 DYN=dyn${dimc}d 500 535 fi 501 536 … … 634 669 then 635 670 INCLUDE="$INCLUDE"' -I$(LIBF)/phy'"$physique" 671 phys="PHYS=$physique" 672 else 673 # trick to avoid having a physics-related library in the makefile 674 phys="L_PHY= LIBPHY=" 636 675 fi 637 676 if (( $dimension == 1 )) … … 674 713 $dyn \ 675 714 LIBO=${LIBOGCM}/${nomlib} \ 676 PHYS=$physique\715 $phys \ 677 716 DIM=$dimc \ 678 717 FLAG_PARA=$FLAG_PARA \ … … 705 744 $dyn \ 706 745 LIBO=${LIBOGCM}/${nomlib} \ 707 PHYS=$physique\746 $phys \ 708 747 DIM=$dimc \ 709 748 FLAG_PARA=$FLAG_PARA \ … … 725 764 PROG=$code 726 765 727 if [[ -r $ libf/grid/dimensions.h ]]766 if [[ -r $LIBFGCM/grid/dimensions.h ]] 728 767 then 729 768 # Cleanup: remove dimension.h file 730 \rm -f $ libf/grid/dimensions.h731 fi 769 \rm -f $LIBFGCM/grid/dimensions.h 770 fi
Note: See TracChangeset
for help on using the changeset viewer.