Changeset 519 for trunk/LMDZ.MARS/makegcm_ifort
- Timestamp:
- Feb 9, 2012, 3:48:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_ifort
r352 r519 21 21 #### relying on the C-shell environment variables) 22 22 # default LMDGCM to where makegcm script is located: 23 #setenv LMDGCM "`dirname $0`" 23 set scriptdir=`dirname $0` 24 setenv LMDGCM `readlink -f $scriptdir` 24 25 # You may set LIBOGCM to something else; otherwise we default to: 25 26 setenv LIBOGCM $LMDGCM/libo … … 740 741 cd $localdir 741 742 743 ## locate main program (could be in dyn3d or phy$physique 744 ## and could be .F or .F90) 745 set source_code=${code}.F 746 if ( -f $LMDGCM/libf/dyn3d/${code}.F90 ) then 747 set source_code=${code}.F90 748 endif 749 if ( -f $LMDGCM/libf/phy${physique}/${code}.F ) then 750 set source_code=${code}.F 751 endif 752 if ( -f $LMDGCM/libf/phy${physique}/${code}.F90 ) then 753 set source_code=${code}.F90 754 endif 755 756 ## locate directory where main program is located 757 if ( $dimension == 3 ) then 758 if ( -f $LMDGCM/libf/dyn3d/${source_code} ) then 759 set dyn="DIRMAIN=dyn3d " 760 endif 761 if ( -f $LMDGCM/libf/phy${physique}/${source_code} ) then 762 set dyn="DIRMAIN=phy${physique} " 763 endif 764 endif 765 742 766 echo $make -f $LMDGCM/makefile \ 743 767 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ … … 762 786 MOD_SUFFIX=$mod_suffix \ 763 787 AR=$ar \ 788 SOURCE=$source_code \ 764 789 PROG=$code 765 790 … … 787 812 MOD_SUFFIX=$mod_suffix \ 788 813 AR=$ar \ 814 SOURCE=$source_code \ 789 815 PROG=$code 790 816
Note: See TracChangeset
for help on using the changeset viewer.