Ignore:
Timestamp:
Jun 13, 2011, 5:36:43 PM (14 years ago)
Author:
aslmd
Message:

MESOSCALE: changements pour compiler / faire tourner le LES sans recours a la physique martienne [doit normalement egalement fonctionner avec modele mesoscale, non teste cependant]. principalement ajout d'un dossier LESnewphys_, d'une option -x dans makemeso et d'un flag NOPHYS dans module_lmd_driver ainsi que solve_em ou assimiles. l'objectif est de preparer la realisation de cas universels idealises, par exemple couche de nuages sur Venus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r153 r156  
    3535phys=""
    3636scenario=""
    37 while getopts "drc:njhgpfs:" options; do
     37while getopts "drc:njhgpfs:x" options; do
    3838  case $options in
    3939   d ) donotcompile=1;;       ## just to check the compile folder
     
    4646   f ) fresh_start=1;;        ## a fresh start
    4747   s ) scenario="${OPTARG}";; ## a specific scenario, you need a corresponding "mars_lmd_..."
     48   x ) phys="nophys_";donotcompilephys=1;; ## a case with no LMD physics included
    4849   h ) echo "
    4950# Use:   
     
    7374#
    7475# makemeso -s storm          ## a specific scenario, you need a corresponding mars_lmd_... (only for newphys)
     76#
     77# makemeso -x                ## a case with no LMD physics included
    7578" ; exit ;;
    7679  esac
     
    213216         if [[ "${config}" == "les" ]]
    214217         then
    215            sed s+"PWD/SRC/"+"PWD/SRC/LES/"+g copy_model > copy_model_tmp
     218           ### NB: With physics: LES folder // Without physics : LESnophys_ folder
     219           ### ---- because differences in 'modif' folder ----
     220           sed s+"PWD/SRC/"+"PWD/SRC/LES$phys/"+g copy_model > copy_model_tmp
    216221         else
    217222           cp copy_model copy_model_tmp
     
    451456
    452457
     458  ### here a case structure would be great
     459
    453460  if [[ "${phys}" == "newphys_" ]]
    454461  then
     
    467474          mv -f yeah configure.wrf
    468475        fi
     476
     477  ################
     478  if [[ "${phys}" == "nophys_" ]]
     479  then
     480     if [[ "${config}" == "les" ]]  ### LES is different because of WRFV3
     481     then
     482       sed s+"ARCH_LOCAL      =       "+"ARCH_LOCAL      =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     483       sed s+"-L../mars_lmd/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
     484     else
     485       ### not tested yet but should be working 
     486       echo CAUTION CAUTION CAUTION NOT FULLY TESTED
     487       sed s+"ARCHFLAGS       =       "+"ARCHFLAGS       =       -DNOPHYS "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     488       sed s+"-L../mars_lmd/libo -llmd"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
     489     fi
     490  fi
     491  ################
    469492
    470493  if [ ${debug} -ne 0 ]   # not working for xlf!
     
    657680  echo 2. compiling WRF dynamical core ...
    658681
    659   if [[ ! ( -f "call_meso_physiq.inc" ) ]]
    660   then
    661    echo 'did you compile the physics ? no call_meso_physiq.inc !'
    662    exit
     682  if [[ "${phys}" == "nophys_" ]]
     683  then
     684   echo 'NO LMD PHYSICS included'
     685  else
     686   if [[ ! ( -f "call_meso_physiq.inc" ) ]]
     687   then
     688    echo 'did you compile the physics ? no call_meso_physiq.inc !'
     689    exit
     690   fi
    663691  fi
    664692
Note: See TracChangeset for help on using the changeset viewer.