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_g95

    r135 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
     
    1717########################################################################
    1818
    19 ###### VERSION LMDZ.3.3
    20 # set LMDGCM=$HOME/LMDZ.3.3
    21 #
    22 
    2319#### 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
     22setenv LMDGCM `readlink -f $0`
    2423#setenv LMDGCM /u/emlmd/LMDZ.MARS
    25 #setenv LIBOGCM /tmp15/emlmd/libo
    26 #if ( `uname -m` == "x86_64" ) then
     24setenv LIBOGCM $LMDGCM/libo
     25# NetCDF
    2726# 64 bit machines
    2827#  setenv NCDFLIB /donnees/emlmd/netcdf64_g95/netcdf-3.6.1/lib
     
    759758endif
    760759
    761 
    762760cd $localdir
     761
     762set source_code=${code}.F
     763if (-f $LMDGCM/libf/phystd/${code}.F90) then
     764  set source_code=${code}.F90
     765endif
    763766
    764767echo $make -f $LMDGCM/makefile \
     
    783786MOD_SUFFIX=$mod_suffix \
    784787AR=$ar \
     788SOURCE=$source_code \
    785789PROG=$code
    786790
     
    807811MOD_SUFFIX=$mod_suffix \
    808812AR=$ar \
     813SOURCE=$source_code \
    809814PROG=$code
    810815
Note: See TracChangeset for help on using the changeset viewer.