Changeset 519 for trunk/LMDZ.MARS/makegcm_gfortran
- Timestamp:
- Feb 9, 2012, 3:48:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_gfortran
r148 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 #setenv LIBOGCM $LMDGCM/libo26 setenv LIBOGCM $LMDGCM/libo 26 27 ## NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines 27 28 #if ( `uname -m` == "x86_64" ) then 28 29 # 64 bit machines 29 #setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_gfortran/lib30 #setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_gfortran/include30 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_gfortran/lib 31 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_gfortran/include 31 32 #else 32 33 # setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_gfortran/lib … … 734 735 cd $localdir 735 736 737 ## locate main program (could be in dyn3d or phy$physique 738 ## and could be .F or .F90) 739 set source_code=${code}.F 740 if ( -f $LMDGCM/libf/dyn3d/${code}.F90 ) then 741 set source_code=${code}.F90 742 endif 743 if ( -f $LMDGCM/libf/phy${physique}/${code}.F ) then 744 set source_code=${code}.F 745 endif 746 if ( -f $LMDGCM/libf/phy${physique}/${code}.F90 ) then 747 set source_code=${code}.F90 748 endif 749 750 ## locate directory where main program is located 751 if ( $dimension == 3 ) then 752 if ( -f $LMDGCM/libf/dyn3d/${source_code} ) then 753 set dyn="DIRMAIN=dyn3d " 754 endif 755 if ( -f $LMDGCM/libf/phy${physique}/${source_code} ) then 756 set dyn="DIRMAIN=phy${physique} " 757 endif 758 endif 759 736 760 echo $make -f $LMDGCM/makefile \ 737 761 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ … … 756 780 MOD_SUFFIX=$mod_suffix \ 757 781 AR=$ar \ 782 SOURCE=$source_code \ 758 783 PROG=$code 759 784 … … 781 806 MOD_SUFFIX=$mod_suffix \ 782 807 AR=$ar \ 808 SOURCE=$source_code \ 783 809 PROG=$code 784 810
Note: See TracChangeset
for help on using the changeset viewer.