Changeset 1403 for trunk/LMDZ.MARS/makegcm_ifort
- Timestamp:
- Mar 31, 2015, 3:49:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_ifort
r1354 r1403 8 8 set physique=mars 9 9 set phys="PHYS=$physique" 10 set include='-I$(LIBF)/grid -I$(LIBF)/ bibio -I. -I$(LIBF)/aeronomars'10 set include='-I$(LIBF)/grid -I$(LIBF)/misc -I. -I$(LIBF)/dynlonlat_phylonlat' 11 11 set ntrac = 1 12 12 set filtre=filtrez … … 14 14 set dyntype="dyn" 15 15 set full="" 16 #src_dirs: directories containing source files 17 set src_dirs="grid misc" 18 16 19 ######################################################################## 17 20 # path a changer contenant les sources et les objets du modele … … 416 419 if ( "$physique" == 'nophys' ) then 417 420 set phys="L_PHY= LIBPHY=" 418 endif 419 421 else 422 set src_dirs="$src_dirs aerono$physique phy$physique" 423 set include="$include "'-I$(LIBF)/aerono'"$physique"' -I$(LIBF)/phy'"$physique" 424 endif 425 set libdyn_phy="" 426 set LIBDYN_PHYS="" 420 427 ######################################################################## 421 428 # choix du nombre de traceur par defaut si il n'a pas ete choisi, … … 499 506 set include="$include "'-I$(LIBF)/dyn2d ' 500 507 set dimh=$dim 501 else 508 endif 509 if ( "$dimc" == "3" ) then 502 510 if ( "$dyntype" == "olddyn" ) then 503 511 set include="$include "'-I$(LIBF)/olddyn3d ' 512 set src_dirs="$src_dirs olddyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique" 504 513 else 505 514 set include="$include "'-I$(LIBF)/dyn3d ' 515 set src_dirs="$src_dirs dyn3d dynlonlat_phylonlat dynlonlat_phylonlat/phy$physique" 506 516 endif 517 set libdyn_phy="-ldynlonlat_phylonlat" 518 set LIBDYN_PHYS='$(LIBO)/libdynlonlat_phylonlat.a' 507 519 set dimh=`echo $dim | awk ' { print $1 "." $2 } '` 508 520 endif … … 563 575 ## NB: we still need to have L_DYN=libdyn3d to reach routines and module 564 576 ## objects which are located in dyn3d 565 set dyn="L_DYN=-ldyn3d DYN= L_FILTRE= DIRMAIN=phy$physique " 577 set dyntype="" 578 set filtre="L_DYN= DYN= FILTRE= L_FILTRE= " 579 set dyn="L_DYN= DYN= L_FILTRE= " 580 set dirmain="phy$physique/dyn1d" 581 set src_dirs="$src_dirs phy$physique/dyn1d " 582 set include="$include "' -I$(LIBF)/phy'"$physique"'/dyn1d' 566 583 endif 567 584 endif … … 603 620 if ( `expr $dimc \> 2` == 1 ) then 604 621 set filtre="FILTRE=$filtre" 622 if ( "$dyntype" == "olddyn" ) then 623 set src_dirs="$src_dirs oldfiltrez" 624 else 625 set src_dirs="$src_dirs filtrez" 626 endif 605 627 else 606 set filtre="FILTRE= L_FILTRE= "628 set filtre="FILTRE= L_FILTRE= L_DYN= " 607 629 endif 608 630 echo "MACRO FILTRE $filtre" … … 646 668 \cp tmp90 liste_des_sources_f90 647 669 echo "On recree le makefile" 648 if ("$dyntype" == "olddyn") then 649 ./create_make_gcm olddyn3d grid bibio aeronomars phy$physique >! tmp 650 else 651 ./create_make_gcm dyn3d grid bibio aeronomars phy$physique >! tmp 652 endif 670 echo "src_dirs: $src_dirs" 671 create_make_gcm $src_dirs >! tmp 653 672 \mv tmp makefile 654 673 echo "Nouveau makefile cree." … … 750 769 cd $localdir 751 770 752 ## locate main program (could be in dyn3d or phy$physique753 ## 771 ## locate main program (could be in dyn3d or dynlonlat_phylonlat/phy$physique 772 ## or phy$physique/dyn1d and could be .F or .F90) 754 773 set source_code=${code}.F 774 set dirmain=dyn${dimc}d 755 775 if ( -f $LMDGCM/libf/dyn3d/${code}.F90 ) then 756 776 set source_code=${code}.F90 757 777 endif 758 if ( -f $LMDGCM/libf/phy${physique}/${code}.F ) then 778 if ( -f $LMDGCM/libf/phy${physique}/dyn1d/${code}.F ) then 779 set dirmain=phy${physique}/dyn1d 759 780 set source_code=${code}.F 760 781 endif 761 if ( -f $LMDGCM/libf/phy${physique}/${code}.F90 ) then 782 if ( -f $LMDGCM/libf/phy${physique}/dyn1d/${code}.F90 ) then 783 set dirmain=phy${physique}/dyn1d 762 784 set source_code=${code}.F90 763 785 endif 764 765 ## locate directory where main program is located 766 if ( $dimension == 3 ) then 767 if ( -f $LMDGCM/libf/dyn3d/${source_code} ) then 768 set dyn="DIRMAIN=dyn3d " 769 endif 770 if ( -f $LMDGCM/libf/phy${physique}/${source_code} ) then 771 set dyn="DIRMAIN=phy${physique} " 772 endif 786 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F ) then 787 set dirmain=dynlonlat_phylonlat/phy${physique} 788 set source_code=${code}.F 789 endif 790 if ( -f $LMDGCM/libf/dynlonlat_phylonlat/phy${physique}/${code}.F90 ) then 791 set dirmain=dynlonlat_phylonlat/phy${physique} 792 set source_code=${code}.F90 773 793 endif 774 794 … … 781 801 $filtre \ 782 802 LIBO=$libo \ 783 $dyn \784 803 $phys \ 804 LIBDYN_PHYS=${LIBDYN_PHYS} \ 785 805 DIM=$dimc \ 786 806 DYNTYPE="$dyntype" \ 807 L_DYN_PHY="$libdyn_phy" \ 787 808 L_ADJNT="$adjnt" \ 788 809 LOCAL_DIR="$localdir" \ … … 795 816 MOD_SUFFIX=$mod_suffix \ 796 817 AR=$ar \ 818 DIRMAIN=$dirmain \ 797 819 SOURCE=$source_code \ 798 820 PROG=$code … … 807 829 $filtre \ 808 830 LIBO=$libo \ 809 $dyn \810 831 $phys \ 832 LIBDYN_PHYS=${LIBDYN_PHYS} \ 811 833 DIM=$dimc \ 812 834 DYNTYPE="$dyntype" \ 835 L_DYN_PHY="$libdyn_phy" \ 813 836 L_ADJNT="$adjnt" \ 814 837 LOCAL_DIR="$localdir" \ … … 821 844 MOD_SUFFIX=$mod_suffix \ 822 845 AR=$ar \ 846 DIRMAIN=$dirmain \ 823 847 SOURCE=$source_code \ 824 848 PROG=$code 825 849 826 # cleanup, remove dimensions.h 850 # cleanup, remove dimensions.h 827 851 \rm -f $libf/grid/dimensions.h
Note: See TracChangeset
for help on using the changeset viewer.