Changeset 1690 for LMDZ5/trunk


Ignore:
Timestamp:
Dec 7, 2012, 3:51:37 PM (12 years ago)
Author:
Ehouarn Millour
Message:

Update makelmdz script to keep up with recent updates in makelmdz_fcm (possibility to use the -mem option and correctly set CPP_PHYS and CPP_EARTH).
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/makelmdz

    r1551 r1690  
    1919chimie=false
    2020parallel=none
     21paramem="par"
    2122compil_mod=prod
    2223io=ioipsl
     
    2627
    2728# guess a default 'arch'
    28 arch="g95" # start with assuming we're on a Linux/Unix machine with g95
     29arch="local" # start with assuming we're on a local machine with local arch file
    2930## try to recognise machine and infer arch from it
    3031machine=`hostname`
     
    113114[-cpp CPP_KEY]             : cle cpp supplementaires
    114115[-adjnt]                   : adjoint, a remettre en route ...
     116[-mem]                     : version memoire reduite (si en mode parallele)
    115117[-filtre NOMFILTRE]        : prend le filtre dans libf/NOMFILTRE (def: filtrez)
    116118[-link LINKS]              : liens optionels avec d autres librairies
     
    170172      "-cosp")
    171173          cosp="$2" ; shift ; shift ;;
     174     
     175      "-mem")
     176          paramem="mem" ; shift ;;
    172177
    173178      "-filtre")
     
    273278if [[ "$physique" != "nophys" ]]
    274279then
    275    #Default planet type is Earth
     280   #We'll use some physics
     281   CPP_KEY="$CPP_KEY CPP_PHYS"
     282   if [[ "${physique:0:3}" == "lmd" ]]
     283   then
     284   #For lmd physics, default planet type is Earth
    276285   CPP_KEY="$CPP_KEY CPP_EARTH"
     286   fi
    277287fi
    278288
     
    435445then
    436446  SUFF_NAME=${SUFF_NAME}_para
    437   DYN=dyn${dimc}dpar
     447  DYN=dyn${dimc}d${paramem}
     448  if [[ "$paramem" == "mem" ]]
     449  then
     450   SUFF_NAME=${SUFF_NAME}_${paramem}
     451  fi
    438452else
    439453  SUFF_NAME=${SUFF_NAME}_seq
Note: See TracChangeset for help on using the changeset viewer.