Changeset 371 for trunk/LMDZ.GENERIC
- Timestamp:
- Nov 10, 2011, 9:30:20 AM (13 years ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 5 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r323 r371 534 534 in the diagfi.nc file. If there is no diagfi.def file, then all variables 535 535 are put in the diagfi.nc file (as was the case before). 536 537 === 10/11/2011 == EM 538 - Updated the makegcm(s) so that default behaviour is to set LMDGCM env variable 539 to be the directory in which the makegcm script is. Updated the makegcm_* 540 to use "SOURCE" to identify code and be compatible with latest 541 'create_make_gcm'. 542 -
trunk/LMDZ.GENERIC/makegcm
r301 r371 1 #!/bin/csh 1 #!/bin/csh -f 2 2 # $Header: /users/lmdz/cvsroot/LMDZ.3.3/makegcm,v 1.21 2001/07/04 08:41:44 lmdz Exp $ 3 3 #set verbose echo … … 19 19 20 20 #### If you want you can set environment variables here 21 # default LMDGCM is where the makegcm script is: 22 #setenv LMDGCM `pwd`"/"`dirname $0` # only works for relative paths 23 setenv LMDGCM `readlink -f $0` 21 24 #setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC" 22 #setenv LIBOGCM $LMDGCM/libo 25 setenv LIBOGCM $LMDGCM/libo 26 # NetCDF, what is below is OK on Gnome 23 27 setenv NCDFLIB /usr/local/lib 24 28 setenv NCDFINC /usr/local/include 29 # NetCDF, on LMD farm: 30 #setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_ifort/lib 31 #setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_ifort/include 25 32 #### 26 33 … … 171 178 else if $LINUX then 172 179 #NB: on gnome -O3 ==> NaNs ... 173 set optim=" -O2 -ip -mkl=sequential -align common"174 set optim90=" -O2 -ip -mkl=sequential -align common"175 set optimtru90=" -O2 -ip -mkl=sequential -align common"180 set optim=" -O2 -ip -mkl=sequential -align all -static " 181 set optim90=" -O2 -ip -mkl=sequential -align all -static " 182 set optimtru90=" -O2 -ip -mkl=sequential -align all -static " 176 183 set mod_loc_dir=$LIBOGCM 177 184 set mod_suffix=mod … … 786 793 endif 787 794 788 789 795 echo $make -f $LMDGCM/makefile \ 790 796 OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \ -
trunk/LMDZ.GENERIC/makegcm_g95
r135 r371 1 #!/bin/csh 1 #!/bin/csh -f 2 2 # $Header: /users/lmdz/cvsroot/LMDZ.3.3/makegcm,v 1.21 2001/07/04 08:41:44 lmdz Exp $ 3 3 #set verbose echo … … 17 17 ######################################################################## 18 18 19 ###### VERSION LMDZ.3.320 # set LMDGCM=$HOME/LMDZ.3.321 #22 23 19 #### If you want you can set environment variables here 20 # default LMDGCM is where the makegcm script is: 21 #setenv LMDGCM `pwd`"/"`dirname $0` # only works for relative paths 22 setenv LMDGCM `readlink -f $0` 24 23 #setenv LMDGCM /u/emlmd/LMDZ.MARS 25 #setenv LIBOGCM /tmp15/emlmd/libo26 # if ( `uname -m` == "x86_64" ) then24 setenv LIBOGCM $LMDGCM/libo 25 # NetCDF 27 26 # 64 bit machines 28 27 # setenv NCDFLIB /donnees/emlmd/netcdf64_g95/netcdf-3.6.1/lib … … 759 758 endif 760 759 761 762 760 cd $localdir 761 762 set source_code=${code}.F 763 if (-f $LMDGCM/libf/phystd/${code}.F90) then 764 set source_code=${code}.F90 765 endif 763 766 764 767 echo $make -f $LMDGCM/makefile \ … … 783 786 MOD_SUFFIX=$mod_suffix \ 784 787 AR=$ar \ 788 SOURCE=$source_code \ 785 789 PROG=$code 786 790 … … 807 811 MOD_SUFFIX=$mod_suffix \ 808 812 AR=$ar \ 813 SOURCE=$source_code \ 809 814 PROG=$code 810 815 -
trunk/LMDZ.GENERIC/makegcm_gfortran
r253 r371 19 19 20 20 #### If you want you can set environment variables here 21 # default LMDGCM is where the makegcm script is: 22 #setenv LMDGCM `pwd`"/"`dirname $0` # only works for relative paths 23 setenv LMDGCM `readlink -f $0` 21 24 #setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC" 22 #setenv LIBOGCM $LMDGCM/libo 23 setenv NCDFLIB /home/rdword/netcdf/lib 24 setenv NCDFINC /home/rdword/netcdf/include 25 setenv LIBOGCM $LMDGCM/libo 26 # NetCDF, on LMD computers: 27 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_gfortran/lib 28 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_gfortran/include 25 29 #### 26 30 … … 791 795 endif 792 796 793 794 797 cd $localdir 795 798 799 set source_code=${code}.F 800 if (-f $LMDGCM/libf/phystd/${code}.F90) then 801 set source_code=${code}.F90 802 endif 796 803 797 804 echo $make -f $LMDGCM/makefile \ … … 817 824 MOD_SUFFIX=$mod_suffix \ 818 825 AR=$ar \ 826 SOURCE=$source_code \ 819 827 PROG=$code 820 828 … … 842 850 MOD_SUFFIX=$mod_suffix \ 843 851 AR=$ar \ 852 SOURCE=$source_code \ 844 853 PROG=$code 845 854 -
trunk/LMDZ.GENERIC/makegcm_ifort
r253 r371 1 #!/bin/csh 1 #!/bin/csh -f 2 2 # $Header: /users/lmdz/cvsroot/LMDZ.3.3/makegcm,v 1.21 2001/07/04 08:41:44 lmdz Exp $ 3 3 #set verbose echo … … 19 19 20 20 #### If you want you can set environment variables here 21 # default LMDGCM is where the makegcm script is: 22 #setenv LMDGCM `pwd`"/"`dirname $0` # only works for relative paths 23 setenv LMDGCM `readlink -f $0` 21 24 #setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC" 22 #setenv LIBOGCM $LMDGCM/libo 25 setenv LIBOGCM $LMDGCM/libo 26 # NetCDF, what is below is OK on Gnome 23 27 setenv NCDFLIB /usr/local/lib 24 28 setenv NCDFINC /usr/local/include 29 # NetCDF, on LMD farm: 30 #setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_ifort/lib 31 #setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_ifort/include 25 32 #### 26 33 … … 171 178 else if $LINUX then 172 179 #NB: on gnome -O3 ==> NaNs ... 173 set optim=" -O2 -ip -mkl=sequential -align common"174 set optim90=" -O2 -ip -mkl=sequential -align common"175 set optimtru90=" -O2 -ip -mkl=sequential -align common"180 set optim=" -O2 -ip -mkl=sequential -align all -static " 181 set optim90=" -O2 -ip -mkl=sequential -align all -static " 182 set optimtru90=" -O2 -ip -mkl=sequential -align all -static " 176 183 set mod_loc_dir=$LIBOGCM 177 184 set mod_suffix=mod … … 779 786 endif 780 787 781 782 788 cd $localdir 783 789 790 set source_code=${code}.F 791 if (-f $LMDGCM/libf/phystd/${code}.F90) then 792 set source_code=${code}.F90 793 endif 784 794 785 795 echo $make -f $LMDGCM/makefile \ … … 805 815 MOD_SUFFIX=$mod_suffix \ 806 816 AR=$ar \ 817 SOURCE=$source_code \ 807 818 PROG=$code 808 809 819 810 820 $make -f $LMDGCM/makefile \ … … 830 840 MOD_SUFFIX=$mod_suffix \ 831 841 AR=$ar \ 842 SOURCE=$source_code \ 832 843 PROG=$code 833 844 -
trunk/LMDZ.GENERIC/makegcm_pgf90
r253 r371 1 #!/bin/csh 1 #!/bin/csh -f 2 2 # $Header: /users/lmdz/cvsroot/LMDZ.3.3/makegcm,v 1.21 2001/07/04 08:41:44 lmdz Exp $ 3 3 #set verbose echo … … 19 19 20 20 #### If you want you can set environment variables here 21 # default LMDGCM is where the makegcm script is: 22 #setenv LMDGCM `pwd`"/"`dirname $0` # only works for relative paths 23 setenv LMDGCM `readlink -f $0` 21 24 #setenv LMDGCM "/san/home/rdword/gcm/LMDZ.GENERIC" 22 #setenv LIBOGCM $LMDGCM/libo 23 #setenv NCDFLIB /usr/local/lib 24 #setenv NCDFINC /usr/local/include 25 if ( `uname -m` == "x86_64" ) then 26 # 64 bit machines 27 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_pgi/lib 28 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_pgi/include 29 else 30 setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_pgi/lib 31 setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_pgi/include 32 endif 25 setenv LIBOGCM $LMDGCM/libo 26 # NetCDF, on LMD 64 bit machines 27 setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_pgi/lib 28 setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_pgi/include 33 29 #### 34 30 … … 803 799 cd $localdir 804 800 801 set source_code=${code}.F 802 if (-f $LMDGCM/libf/phystd/${code}.F90) then 803 set source_code=${code}.F90 804 endif 805 805 806 806 echo $make -f $LMDGCM/makefile \ … … 826 826 MOD_SUFFIX=$mod_suffix \ 827 827 AR=$ar \ 828 SOURCE=$source_code \ 828 829 PROG=$code 829 830 … … 851 852 MOD_SUFFIX=$mod_suffix \ 852 853 AR=$ar \ 854 SOURCE=$source_code \ 853 855 PROG=$code 854 856
Note: See TracChangeset
for help on using the changeset viewer.