Ignore:
Timestamp:
May 11, 2014, 2:37:58 PM (11 years ago)
Author:
aslmd
Message:

LMDZ.MARS. Made number of scatterers a free dimension not in need to be prescribe at compiling time. Instead it must be set in callphys.def. See README for further information about this commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/makegcm_g95

    r1085 r1246  
    1313set grille=reg
    1414set dyntype="dyn"
    15 set scatterers="1"
    1615set full=""
    1716########################################################################
     
    1918########################################################################
    2019
    21 #### If you want you can set environment variables here (instead of
    22 ####  relying on the C-shell environment variables)
    23 # default LMDGCM to where makegcm script is located:
    24 set scriptdir=`dirname $0`
    25 setenv LMDGCM `readlink -f $scriptdir`
    26 # You may set LIBOGCM to something else; otherwise we default to:
    27 setenv LIBOGCM $LMDGCM/libo
    28 ## NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines
    29 #if ( `uname -m` == "x86_64" ) then
    30 ## 64 bit machines
    31   setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_g95/lib
    32   setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include
    33 #else
    34 #  setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_g95/lib
    35 #  setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_g95/include
    36 #endif
    37 ####
     20##### If you want you can set environment variables here (instead of
     21#####  relying on the C-shell environment variables)
     22## default LMDGCM to where makegcm script is located:
     23#set scriptdir=`dirname $0`
     24#setenv LMDGCM `readlink -f $scriptdir`
     25## You may set LIBOGCM to something else; otherwise we default to:
     26#setenv LIBOGCM $LMDGCM/libo
     27### NetCDF Libraries: what follows is OK for LMD 32 and 64bit Linux Machines
     28##if ( `uname -m` == "x86_64" ) then
     29### 64 bit machines
     30#  setenv NCDFLIB /donnees/emlmd/netcdf64-4.0.1_g95/lib
     31#  setenv NCDFINC /donnees/emlmd/netcdf64-4.0.1_g95/include
     32##else
     33##  setenv NCDFLIB /donnees/emlmd/netcdf-4.0.1_g95/lib
     34##  setenv NCDFINC /donnees/emlmd/netcdf-4.0.1_g95/include
     35##endif
     36#####
    3837
    3938setenv localdir "`pwd`"
     
    290289             $LMDGCM/libf/grid/dimension/makdim
    291290
    292 -s nscat   Number of radiatively active scatterers
    293 
    294291-p PHYS    Selects the set of physical parameterizations
    295292           you want to compile the model with.
     
    350347     case -p
    351348        set physique="$2" ; set phys="PHYS=$physique" ; shift ; shift ; goto top
    352 
    353      case -s
    354         set scatterers="$2" ; shift ; goto top
    355349
    356350     case -g
     
    470464# build final name of libraries directory:
    471465if ( "$dyntype" == "olddyn" ) then
    472   set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille}_olddyn
     466  set nomlib=${nomlib}_${dim_}_t${ntrac}_${grille}_olddyn
    473467else
    474   set nomlib=${nomlib}_${dim_}_t${ntrac}_s${scatterers}_${grille}
     468  set nomlib=${nomlib}_${dim_}_t${ntrac}_${grille}
    475469endif
    476470
     
    527521    #remove old dimensions.h file
    528522    \rm -f $libf/grid/dimensions.h
    529     #remove old scatterers.h file
    530     \rm -f $libf/phy$physique/scatterers.h
    531523  else
    532524    exit
     
    540532cat $libf/grid/dimensions.h
    541533
    542 cd $libf/phy$physique/scatterers
    543 # Build the appropriate 'scatterers.h' file
    544 ./make_scatterers $scatterers
    545 # echo contents of scatterers.h to standard output
    546 cat $libf/phy$physique/scatterers.h
    547 
     534#
    548535cd $LMDGCM
    549536# set path to objects directory
     
    828815PROG=$code
    829816
    830 # cleanup, remove dimensions.h and scatterers.h
     817# cleanup, remove dimensions.h
    831818\rm -f $libf/grid/dimensions.h
    832 \rm -f $libf/phy$physique/scatterers.h
Note: See TracChangeset for help on using the changeset viewer.