Ignore:
Timestamp:
Jun 8, 2011, 6:01:00 PM (14 years ago)
Author:
aslmd
Message:

MESOSCALE: modified makemeso and runmeso to comply with changes performed in r148 about scatterers in newphys. a new question is now asked if you run makemeso -p or if you run runmeso with run.def in the folder. note that runmeso only asks the question for scenarios mars=1 or mars=11 where water cycle is on, otherwise by default number of scatterers is 1 (i.e. only dust).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso

    r138 r153  
    2727
    2828scenario=""
    29 #scenario="storm"
     29scenario="storm"
    3030
    3131if [[ "${LMDMOD}" = "" ]]
     
    167167        exit
    168168  fi
    169 tracers=$(more ${simu_folder}/namelist.input | grep mars | awk '{print $3}' | sed s+','+''+g)
    170   case ${tracers} in
     169mars_scenario=$(more ${simu_folder}/namelist.input | grep mars | awk '{print $3}' | sed s+','+''+g)
     170  case ${mars_scenario} in
    171171      0) tracers='1' ;;
    172172      1) tracers='2' ;;
     
    178178echo '** Domain(s)             >>> '${nest}
    179179echo '** Tracer(s)             >>> '${tracers}
     180
     181   ############ SCATTERERS SCATTERERS ######
     182   if [[ ${newphys} -eq 1 ]]
     183   then
     184     #### CHANGE THIS IF YOU ADD NEW SCENARIOS
     185     case ${mars_scenario} in
     186       0) scat=1 ;;
     187       1) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;
     188       2) scat=1 ;;
     189       3) scat=1 ;;
     190      11) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;
     191      20) scat=1 ;;
     192       *) scat=1 ;;
     193     esac
     194     echo '** Scatterers            >>> '${scat}
     195   else
     196     #### USELESS here BUT COMPATIBILITY
     197     scat=1
     198   fi
     199   #########################################
     200
    180201echo '** Grid points           >>> '${nx}" x "${ny}" x "${nz}
    181202echo '** Horizontal resolution >>> '${dx}
     203
    182204#echo "OK ? ('no' to exit, any key if OK)" ; read wellok
    183205#  if [[ "${wellok}" = "no" ]]
     
    326348 cd ${simu_folder}
    327349     ## corresponding executables
    328     wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe
    329     realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe
     350    wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe
     351    realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe
    330352 if [[ -f ${wrfexe} ]]
    331353 then
     
    360382   echo ${nest} >> ${simu_folder}/makemeso_input
    361383   echo ${tracers} >> ${simu_folder}/makemeso_input
    362    #echo 'y' >> ${simu_folder}/makemeso_input
     384   if [[ ${newphys} -eq 1 ]]
     385   then
     386     echo 'n' >> ${simu_folder}/makemeso_input
     387     echo ${scat} >> ${simu_folder}/makemeso_input
     388   fi
    363389   #
    364390   # COMPILE THE MODEL
Note: See TracChangeset for help on using the changeset viewer.