Ignore:
Timestamp:
May 11, 2014, 3:56:22 PM (11 years ago)
Author:
aslmd
Message:

MESOSCALE. Adapted the mesoscale model to previous commit to LMD GCM physics where number of scatterers is no longer set at compiling time.

File:
1 edited

Legend:

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

    r1045 r1247  
    191191echo '** Domain(s)             >>> '${nest}
    192192echo '** Tracer(s)             >>> '${tracers}
    193 
    194    ############ SCATTERERS SCATTERERS ######
    195    if [[ ${newphys} -eq 1 ]]
    196    then
    197      #### CHANGE THIS IF YOU ADD NEW SCENARIOS
    198      case ${mars_scenario} in
    199        0) scat=1 ;;
    200        1) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;
    201        2) scat=1 ;;
    202        3) scat=1 ;;
    203       11) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;
    204       12) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;;
    205       20) scat=1 ;;
    206        *) scat=1 ;;
    207      esac
    208      echo '** Scatterers            >>> '${scat}
    209    else
    210      #### USELESS here BUT COMPATIBILITY
    211      scat=1
    212    fi
    213    #########################################
    214 
    215193echo '** Grid points           >>> '${nx}" x "${ny}" x "${nz}
    216194echo '** Horizontal resolution >>> '${dx}
     
    379357 cd ${simu_folder}
    380358     ## corresponding executables
    381     wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe
    382     realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe
     359    wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe
     360    realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}.exe
    383361 if [[ ${fresh} -eq 0 && -f ${wrfexe} ]]
    384362 then
     
    404382   touch ${simu_folder}/makemeso_input
    405383   echo ${compilo} >> ${simu_folder}/makemeso_input
    406    if [[ "${compilo}" = "3" || "${compilo}" = "5" ]]
     384   if [[ ${newphys} -eq 0 ]]
     385   then
     386     if [[ "${compilo}" = "3" || "${compilo}" = "5" ]]
    407387     then
    408388         echo ${numproc} >> ${simu_folder}/makemeso_input
    409    fi
    410    echo ${nx} >> ${simu_folder}/makemeso_input
    411    echo ${ny} >> ${simu_folder}/makemeso_input
     389     fi
     390     echo ${nx} >> ${simu_folder}/makemeso_input
     391     echo ${ny} >> ${simu_folder}/makemeso_input
     392   fi
    412393   echo ${nz} >> ${simu_folder}/makemeso_input
    413394   echo ${nest} >> ${simu_folder}/makemeso_input
    414    echo ${tracers} >> ${simu_folder}/makemeso_input
    415    if [[ ${newphys} -eq 1 ]]
    416    then
    417      echo ${scat} >> ${simu_folder}/makemeso_input
    418      #echo 'n' >> ${simu_folder}/makemeso_input
     395   if [[ ${newphys} -eq 0 ]]
     396   then
     397     echo ${tracers} >> ${simu_folder}/makemeso_input
    419398   fi
    420399   #
Note: See TracChangeset for help on using the changeset viewer.