Changeset 519 for trunk/LMDZ.MARS/makegcm_g95
- Timestamp:
- Feb 9, 2012, 3:48:30 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/makegcm_g95
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_g95/lib30 #setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include30 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_g95/lib 31 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include 31 32 #else 32 33 # setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_g95/lib … … 736 737 cd $localdir 737 738 739 ## locate main program (could be in dyn3d or phy$physique 740 ## and could be .F or .F90) 741 set source_code=${code}.F 742 if ( -f $LMDGCM/libf/dyn3d/${code}.F90 ) then 743 set source_code=${code}.F90 744 endif 745 if ( -f $LMDGCM/libf/phy${physique}/${code}.F ) then 746 set source_code=${code}.F 747 endif 748 if ( -f $LMDGCM/libf/phy${physique}/${code}.F90 ) then 749 set source_code=${code}.F90 750 endif 751 752 ## locate directory where main program is located 753 if ( $dimension == 3 ) then 754 if ( -f $LMDGCM/libf/dyn3d/${source_code} ) then 755 set dyn="DIRMAIN=dyn3d " 756 endif 757 if ( -f $LMDGCM/libf/phy${physique}/${source_code} ) then 758 set dyn="DIRMAIN=phy${physique} " 759 endif 760 endif 761 738 762 echo $make -f $LMDGCM/makefile \ 739 763 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ … … 758 782 MOD_SUFFIX=$mod_suffix \ 759 783 AR=$ar \ 784 SOURCE=$source_code \ 760 785 PROG=$code 761 786 … … 783 808 MOD_SUFFIX=$mod_suffix \ 784 809 AR=$ar \ 810 SOURCE=$source_code \ 785 811 PROG=$code 786 812
Note: See TracChangeset
for help on using the changeset viewer.