Ignore:
Timestamp:
Nov 10, 2011, 9:30:20 AM (13 years ago)
Author:
emillour
Message:

Generic model: updated makegcm(s) so that default behaviour is to set LMDGCM env variable to be the directory in which the makegcm script is. Removed files tmp77, tmp90, liste_des_sources_f90, liste_des_sources_f77 and makefile from the svn repository since these are (re-)created by makegcm.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/makegcm_gfortran

    r253 r371  
    1919
    2020#### 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
     23setenv LMDGCM `readlink -f $0`
    2124#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
     25setenv LIBOGCM $LMDGCM/libo
     26# NetCDF, on LMD computers:
     27setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_gfortran/lib
     28setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_gfortran/include
    2529####
    2630
     
    791795endif
    792796
    793 
    794797cd $localdir
    795798
     799set source_code=${code}.F
     800if (-f $LMDGCM/libf/phystd/${code}.F90) then
     801  set source_code=${code}.F90
     802endif
    796803
    797804echo $make -f $LMDGCM/makefile \
     
    817824MOD_SUFFIX=$mod_suffix \
    818825AR=$ar \
     826SOURCE=$source_code \
    819827PROG=$code
    820828
     
    842850MOD_SUFFIX=$mod_suffix \
    843851AR=$ar \
     852SOURCE=$source_code \
    844853PROG=$code
    845854
Note: See TracChangeset for help on using the changeset viewer.