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