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_pgf90

    r253 r371  
    1 #!/bin/csh
     1#!/bin/csh -f
    22# $Header: /users/lmdz/cvsroot/LMDZ.3.3/makegcm,v 1.21 2001/07/04 08:41:44 lmdz Exp $
    33#set verbose echo
     
    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 /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
     25setenv LIBOGCM $LMDGCM/libo
     26# NetCDF, on LMD 64 bit machines
     27setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_pgi/lib
     28setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_pgi/include
    3329####
    3430
     
    803799cd $localdir
    804800
     801set source_code=${code}.F
     802if (-f $LMDGCM/libf/phystd/${code}.F90) then
     803  set source_code=${code}.F90
     804endif
    805805
    806806echo $make -f $LMDGCM/makefile \
     
    826826MOD_SUFFIX=$mod_suffix \
    827827AR=$ar \
     828SOURCE=$source_code \
    828829PROG=$code
    829830
     
    851852MOD_SUFFIX=$mod_suffix \
    852853AR=$ar \
     854SOURCE=$source_code \
    853855PROG=$code
    854856
Note: See TracChangeset for help on using the changeset viewer.