Changeset 1302 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Jun 26, 2014, 6:07:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r1300 r1302 26 26 cosp=false 27 27 sisvat=false 28 rrtm=false 28 29 bands="" 29 30 scatterers="" 30 dyn=""31 31 full='' 32 32 … … 35 35 ## try to recognise machine and infer arch from it 36 36 machine=`hostname` 37 if [[ "$machine" == "brodie" ]]38 then39 arch="SX8_BRODIE"40 fi41 37 if [[ "${machine:0:3}" == "ada" ]] 42 38 then 43 39 arch="X64_ADA" 44 fi45 if [[ "${machine:0:6}" == "ciclad" ]]46 then47 arch="AMD64_CICLAD"48 40 fi 49 41 if [[ "${machine:0:7}" == "platine" ]] … … 87 79 88 80 CPP_KEY="" 89 INCLUDE='-I$(LIBF)/grid -I$(LIBF)/bibio -I$(LIBF)/ dyn3d_common -I$(LIBF)/filtrez -I. '81 INCLUDE='-I$(LIBF)/grid -I$(LIBF)/bibio -I$(LIBF)/filtrez -I. ' 90 82 LIB="" 91 83 adjnt="" … … 184 176 CPP_KEY="$CPP_KEY $2" ; shift ; shift ;; 185 177 186 "-adjnt")187 echo "not operational ... work to be done here ";exit188 opt_dep="$opt_dep adjnt" ; adjnt="-ladjnt -ldyn3d "189 optim="$optim -Dadj" ; shift ;;190 191 178 "-cosp") 192 179 cosp="$2" ; shift ; shift ;; … … 194 181 "-sisvat") 195 182 sisvat="$2" ; shift ; shift ;; 183 184 "-rrtm") 185 rrtm="$2" ; shift ; shift ;; 196 186 197 187 "-mem") … … 457 447 fi 458 448 449 if [[ "$rrtm" == "true" ]] 450 then 451 CPP_KEY="$CPP_KEY CPP_RRTM" 452 fi 453 459 454 460 455 INCLUDE="$INCLUDE ${NETCDF_INCDIR}" … … 536 531 echo dimension $dimension 537 532 538 if (( $dimension == 3 )) 539 then 533 if (( $dimension == 3 )) ; then 540 534 cd $LIBFGCM/grid 541 535 \rm fxyprim.h 542 536 cp -p fxy_${grille}.h fxyprim.h 543 #else 544 # echo "Probleme dans les dimensions de la dynamique !!" 545 # echo "Non reactive pour l'instant !!!" 546 fi 547 if (( $dimension == 1 )) 548 then 549 echo pas de dynamique 550 dyn="DYN= L_DYN=-ldyn3d " 551 fi 552 553 ###################################################################### 554 # Gestion du filtre qui n'existe qu'en 3d. 555 ###################################################################### 556 557 if (( `expr $dimc \> 2` == 1 )) 558 then 559 filtre="FILTRE=$filtre" 537 filtre="FILTRE=$filtre" 538 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn3d${FLAG_PARA} -I$(LIBF)/dyn3d_common ' 539 elif (( $dimension == 2 )) ; then 540 filtre="FILTRE= L_FILTRE= " 541 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn2d' 542 elif (( $dimension == 1 )) ; then 543 echo pas de dynamique 544 CPP_KEY="$CPP_KEY CPP_1D" 545 filtre="L_DYN= DYN= FILTRE= L_FILTRE= DIRMAIN=phy$physique " 546 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn3d -I$(LIBF)/dyn3d_common ' # Pas tres propre 560 547 else 561 filtre="FILTRE= L_FILTRE= " 562 fi 563 echo MACRO FILTRE $filtre 564 565 echo $dimc 566 567 ###################################################################### 568 # Creation du suffixe de la configuration 569 ###################################################################### 570 571 572 SUFF_NAME=_${dim_full} 573 SUFF_NAME=${SUFF_NAME}_phy${physique} 574 575 if [[ "$parallel" != "none" ]] 576 then 577 SUFF_NAME=${SUFF_NAME}_para 578 DYN=dyn${dimc}d${paramem} 579 if [[ "$paramem" == "mem" ]] 580 then 581 SUFF_NAME=${SUFF_NAME}_${paramem} 582 fi 583 else 584 SUFF_NAME=${SUFF_NAME}_seq 585 DYN=dyn${dimc}d 586 fi 587 588 if [[ $veget != "false" ]] 589 then 590 SUFF_NAME=${SUFF_NAME}_orch 591 fi 592 593 if [[ $couple != "false" ]] 594 then 595 SUFF_NAME=${SUFF_NAME}_couple 596 fi 597 598 if [[ $chimie == "INCA" ]] 599 then 600 SUFF_NAME=${SUFF_NAME}_inca 548 echo Dimension dimc=$dimc pas prevu ; exit 601 549 fi 602 550 … … 626 574 find libf -name '*.[Fh]' -print | sort > tmp77 627 575 find libf -name '*.[Fh]' -exec egrep -i " *use *ioipsl" {} \; -print | sort > tmp90 628 find libf -name '*. [Fh90]' -print | sort >> tmp90576 find libf -name '*.F90' -print | sort >> tmp90 629 577 ######### CAS PARTICULIER CHIMIE TITAN 630 578 if [[ "$physique" == "titan" ]] … … 766 714 INCLUDEC="$includec" \ 767 715 $filtre \ 768 $dyn \769 716 LIBO=${LIBOGCM}/${nomlib} \ 770 717 $phys \ … … 798 745 INCLUDEC="$includec" \ 799 746 $filtre \ 800 $dyn \801 747 LIBO=${LIBOGCM}/${nomlib} \ 802 748 $phys \
Note: See TracChangeset
for help on using the changeset viewer.