Changeset 118


Ignore:
Timestamp:
May 12, 2011, 9:27:42 PM (14 years ago)
Author:
aslmd
Message:

LMD_MM_MARS: ajout mars_lmd_new_storm avec routines modifiees par J. Faure (stage M2). modification makemeso et runmeso avec ajout d une option -s qui permet de preciser un scenario base sur une physique legerement differente comme par exemple storm. ceci cree un nouveau dossier de compilation dont le nom commence par le nom du scenario.

Location:
trunk
Files:
146 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/mars/libf/phymars/callradite.F

    r77 r118  
    266266          name_iaer(1) = "dust_doubleq"
    267267cc        name_iaer(2) = "dust_submicron" !! JB: experimental
    268           name_iaer(2) = "h2o_ice"
     268c          name_iaer(2) = "h2o_ice"
    269269c        ----------------------------------------------------------
    270270
  • trunk/mars/libf/phymars/dimradmars.h

    r77 r118  
    2727! (ex: naerkind=2 if you use one dust mode and active ice ...)
    2828      integer naerkind
    29 !      parameter (naerkind=1)
    30       parameter (naerkind=2)
     29      parameter (naerkind=1)
     30!      parameter (naerkind=2)
    3131
    3232! Reference wavelengths used to compute reference optical depth (m)
  • trunk/mesoscale/LMD_MM_MARS/SIMU/runmeso

    r81 r118  
    2525#changeregis=1 ## 1 if changed registry
    2626i_want_to_compile=1
     27
     28scenario=""
     29scenario="storm"
    2730
    2831if [[ "${LMDMOD}" = "" ]]
     
    6265         echo '**********************************************'
    6366         newphys=1
     67         if [[ ! ("${scenario}" == "") ]]
     68         then     
     69            echo '** Scenario              >>>' ${scenario}
     70            echo '**********************************************'
     71         fi
    6472       fi
    6573
     
    251259 ./makemeso -d < tmp > /dev/null
    252260 else
    253  ./makemeso -d -p < tmp > /dev/null
     261   if [[ "${scenario}" == "" ]]
     262   then
     263   ./makemeso -d -p < tmp > /dev/null
     264   else
     265   ./makemeso -d -p -s ${scenario} < tmp > /dev/null
     266   fi
    254267 fi
    255 
    256268 \rm tmp 2> /dev/null
    257269 work_folder=${meso_folder}'/'$(more what_folder)
     
    366378       ./makemeso -r < ${simu_folder}/makemeso_input
    367379     else
    368        ./makemeso -r -p < ${simu_folder}/makemeso_input
     380         if [[ "${scenario}" == "" ]]
     381         then
     382          ./makemeso -r -p < ${simu_folder}/makemeso_input
     383         else
     384          ./makemeso -r -p -s ${scenario} < ${simu_folder}/makemeso_input
     385         fi
    369386     fi
    370387     ##******
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F

    r117 r118  
    11161116
    11171117
    1118 !!!!!!!
    1119 !!!!!!! SPECIAL POUR AJOUTER UNE TACHE DE POUSSIERE (sparadrap)
    1120 !!!!!!! ps: induit une erreur benigne sur la partie de pdq qui n'est pas zdqnorm
    1121 !!!!!!! ps: la raison est que dt n'est pas passe dans meso_physiq
    1122 !!!!!!!
    1123 !IF (firstcall .EQV. .true.) THEN
    1124 !  pdq(:,:,:) = pdq(:,:,:) / dt
    1125 !ENDIF
     1118!!!!!! PATCH SPECIAL STORM
     1119#ifdef NEWPHYS
     1120#ifdef storm
     1121#include "../mars_lmd/storm.inc"
     1122#endif
     1123#endif
     1124!!!!!! PATCH SPECIAL STORM
    11261125
    11271126
  • trunk/mesoscale/LMD_MM_MARS/makemeso

    r111 r118  
    3434fresh_start=0
    3535phys=""
    36 while getopts "drc:njhgpf" options; do
     36scenario=""
     37while getopts "drc:njhgpfs:" options; do
    3738  case $options in
    38    d ) donotcompile=1;;     ## just to check the compile folder
    39    r ) donotallow=1;;       ## allow only known config (useful with 'makemeso < last')
    40    c ) config="${OPTARG}";; ## idealized cases
    41    n ) donotcompilephys=1;; ## do not recompile physics
    42    j ) justphys=1;;         ## just compile LMD physics
    43    g ) debug=1;;            ## debug mode
    44    p ) phys="newphys_";;    ## with new physics
    45    f ) fresh_start=1;;      ## a fresh start
     39   d ) donotcompile=1;;       ## just to check the compile folder
     40   r ) donotallow=1;;         ## allow only known config (useful with 'makemeso < last')
     41   c ) config="${OPTARG}";;   ## idealized cases
     42   n ) donotcompilephys=1;;   ## do not recompile physics
     43   j ) justphys=1;;           ## just compile LMD physics
     44   g ) debug=1;;              ## debug mode
     45   p ) phys="newphys_";;      ## with new physics
     46   f ) fresh_start=1;;        ## a fresh start
     47   s ) scenario="${OPTARG}";; ## a specific scenario, you need a corresponding "mars_lmd_..."
    4648   h ) echo "
    4749# Use:   
     
    6971#
    7072# makemeso -f                ## fresh start [clean -a]
     73#
     74# makemeso -s storm          ## a specific scenario, you need a corresponding mars_lmd_... (only for newphys)
    7175" ; exit ;;
    7276  esac
     
    143147####
    144148
    145     conf_wrf="${phys}${compilo}_${machine}${single}${testflag}"
     149    conf_wrf="${scenario}${phys}${compilo}_${machine}${single}${testflag}"
    146150    \rm what_folder 2> /dev/null
    147151    echo ${conf_wrf} > what_folder
     
    172176    then
    173177     \rm copy_model_tmp > /dev/null
    174      sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp
     178        if [[ "${scenario}" == "" ]]
     179        then
     180          sed s+"mars_lmd"+"mars_lmd_new"+g             copy_model > copy_model_tmp
     181        else
     182          echo SCENARIO ${scenario} DID YOU INCLUDE THE RIGHT copy_model ? ; read dummy
     183          sed s+"mars_lmd"+"mars_lmd_new_${scenario}"+g copy_model > copy_model_tmp
     184        fi
    175185     chmod 755 copy_model_tmp
    176186     ./copy_model_tmp
     
    178188     mv WRFV2 ${conf_wrf}/
    179189     cd ${conf_wrf}/WRFV2
    180      ln -sf mars_lmd_new mars_lmd
     190        if [[ "${scenario}" == "" ]]
     191        then
     192          ln -sf mars_lmd_new             mars_lmd
     193        else
     194          ln -sf mars_lmd_new_${scenario} mars_lmd
     195          cp ../../SRC/WRFV2/mars_lmd_new_${scenario}/Registry.EM mars_lmd_new_${scenario}/
     196          cp ../../SRC/WRFV2/mars_lmd_new_${scenario}/*.inc mars_lmd_new_${scenario}/
     197          cd Registry ; ln -sf ../mars_lmd_new_${scenario}/Registry.EM . ; cd ..
     198        fi
    181199     ln -sf meso_callkeys_newphys.h meso_callkeys.h
    182200     cd Registry ; Registry.bash ; cd ..
     
    356374  fi
    357375
     376        if [[ ! ("${scenario}" == "") ]]
     377        then
     378          sed s+"ARCHFLAGS       =       "+"ARCHFLAGS       =       -D${scenario} "+g configure.wrf > yeah
     379          mv -f yeah configure.wrf
     380        fi
     381
    358382  if [ ${debug} -ne 0 ]   # not working for xlf!
    359383  then
Note: See TracChangeset for help on using the changeset viewer.