Changeset 2239 for LMDZ5/trunk/makelmdz
- Timestamp:
- Mar 23, 2015, 8:27:30 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/makelmdz
r2238 r2239 77 77 78 78 CPP_KEY="" 79 INCLUDE='-I$(LIBF)/grid -I$(LIBF)/ bibio-I$(LIBF)/filtrez -I. '79 INCLUDE='-I$(LIBF)/grid -I$(LIBF)/misc -I$(LIBF)/filtrez -I. ' 80 80 LIB="" 81 81 adjnt="" … … 85 85 EXT_SRC="" 86 86 #src_dirs: directories containing source files 87 src_dirs="grid bibio"87 src_dirs="grid misc" 88 88 ######################################################################## 89 89 # lecture des options … … 288 288 #We'll use some physics 289 289 src_dirs="$src_dirs phy$physique" 290 LIBPHY='$(LIBO)/libphy'"$physique"'.a' 291 lib_phy='-lphy'"$physique" 290 292 CPP_KEY="$CPP_KEY CPP_PHYS" 291 293 if [[ "${physique:0:3}" == "lmd" ]] … … 417 419 then 418 420 CPP_KEY="$CPP_KEY CPP_COSP" 419 COSP_PATH="$LIBFGCM/ cosp"421 COSP_PATH="$LIBFGCM/phylmd/cosp" 420 422 src_dirs="$src_dirs cosp" 421 423 # LIB="${LIB} -l${LIBPREFIX}cosp" … … 498 500 if (( $dimc == 3 )) ; then 499 501 src_dirs="$src_dirs $filtre dyn3d_common dyn3d${FLAG_PARA}" 502 if [[ $physique != "nophys" ]] ; then 503 src_dirs="$src_dirs dynlmdz_phy${physique}" 504 libdyn_phy="-ldynlmdz_phy${physique}" 505 LIBDYN_PHYS='$(LIBO)/libdynlmdz_phy'"${physique}"'.a' 506 INCLUDE="$INCLUDE "'-I$(LIBF)/dynlmdz_phy'"${physique}" 507 fi 500 508 cd $LIBFGCM/grid 501 509 \rm fxyprim.h … … 504 512 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn3d${FLAG_PARA} -I$(LIBF)/dyn3d_common ' 505 513 elif (( $dimc == 2 )) ; then 514 src_dirs="$src_dirs dyn2d" 506 515 filtre="FILTRE= L_FILTRE= " 507 516 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn2d' 508 517 elif (( $dimc == 1 )) ; then 509 src_dirs="$src_dirs dyn3d dyn3d_common filtrez" 518 #src_dirs="$src_dirs dyn3d dyn3d_common filtrez" 519 src_dirs="$src_dirs phy${physique}/dyn1d" 510 520 CPP_KEY="$CPP_KEY CPP_1D" 511 filtre="L_DYN= DYN= FILTRE= L_FILTRE= DIRMAIN=phy$physique " 512 INCLUDE="$INCLUDE "'-I$(LIBF)/dyn3d -I$(LIBF)/dyn3d_common ' # Pas tres propre 521 filtre="L_DYN= DYN= FILTRE= L_FILTRE= " 522 #INCLUDE="$INCLUDE "'-I$(LIBF)/dyn3d -I$(LIBF)/dyn3d_common ' # Pas tres propre 523 INCLUDE="$INCLUDE "' -I$(LIBF)/phy'"$physique"'/dyn1d' 513 524 else 514 525 echo Dimension dimc=$dimc pas prevu ; exit … … 590 601 591 602 source_code=${code}.F 603 dirmain=dyn${dimc}d${FLAG_PARA} 592 604 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]] 593 605 then 594 606 source_code=${code}.F90 595 607 elif [[ -r $LMDGCM/libf/phy$physique/${code}.F90 ]] ; then 608 dirmain=phy$physique 609 source_code=${code}.F90 610 elif [[ -r $LMDGCM/libf/dynlmdz_phy$physique/${code}.F90 ]] ; then 611 dirmain=dynlmdz_phy${physique} 612 source_code=${code}.F90 613 elif [[ -r $LMDGCM/libf/phy$physique/dyn1d/${code}.F90 ]] ; then 614 dirmain=phy$physique/dyn1d 596 615 source_code=${code}.F90 597 616 fi … … 647 666 LIBO=${LIBOGCM}/${nomlib} \ 648 667 "PHYS=$physique" \ 668 LIBPHY=${LIBPHY} \ 669 LIBDYN_PHYS=${LIBDYN_PHYS} \ 649 670 DIM=$dimc \ 650 671 FLAG_PARA=$FLAG_PARA \ 672 L_PHY="$lib_phy" \ 673 L_DYN_PHY="$libdyn_phy" \ 651 674 L_ADJNT=$adjnt \ 652 675 L_COSP="$lcosp" \ … … 661 684 MOD_SUFFIX="mod" \ 662 685 AR=$arcommand \ 686 DIRMAIN=$dirmain \ 663 687 SOURCE=$source_code \ 664 688 PROG=$code … … 673 697 LIBO=${LIBOGCM}/${nomlib} \ 674 698 "PHYS=$physique" \ 699 LIBPHY=${LIBPHY} \ 700 LIBDYN_PHYS=${LIBDYN_PHYS} \ 675 701 DIM=$dimc \ 676 702 FLAG_PARA=$FLAG_PARA \ 703 L_PHY="$lib_phy" \ 704 L_DYN_PHY="$libdyn_phy" \ 677 705 L_ADJNT=$adjnt \ 678 706 L_COSP="$lcosp" \ … … 687 715 MOD_SUFFIX="mod" \ 688 716 AR=$arcommand \ 717 DIRMAIN=$dirmain \ 689 718 SOURCE=$source_code \ 690 719 PROG=$code
Note: See TracChangeset
for help on using the changeset viewer.