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/makemeso

    r147 r153  
    248248    fi
    249249  fi
     250  if [[ "${phys}" == "newphys_" ]]
     251  then
     252     echo "How many scatterers are you using : 1,2,..." ; read scat
     253  else
     254     scat=1 ## dummy stuff
     255  fi
     256
    250257  # summary
    251258  echo '**********************'
     
    268275  echo '         '${dom} domains
    269276  echo '         '${tra} tracers
     277  if [[ "${phys}" == "newphys_" ]]
     278  then
     279    echo '         '${scat} scatterers
     280  fi
    270281  echo '****************************************'
    271282  # save answer
     
    283294  echo ${tra} >> last
    284295  echo ${answer} >> last
     296  echo ${scat} >> last
    285297
    286298#------------
     
    547559       touch gr_fi_dyn.F.lien
    548560         ln -sf ../dyn3d/gr_fi_dyn.F .  ## dommage, a corriger ## attention idem
     561     ###############################
     562     ###############################
     563\rm scatterers.h
     564cat << EOF > scatterers.h
     565!-----------------------------------------------------------------------
     566!   INCLUDE 'scatterers.h'
     567!
     568! Number of kind of tracer radiative properties
     569! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     570! (ex: naerkind=1 if you use one dust mode without ice ...)
     571! (ex: naerkind=2 if you use one dust mode and active ice ...)
     572!-----------------------------------------------------------------------
     573
     574      integer, parameter :: naerkind=${scat}
     575
     576!-----------------------------------------------------------------------
     577EOF
     578     ###############################
     579     ###############################
    549580     fi
    550581     ###
     
    600631  # save a copy
    601632  #--------------
    602   cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra}
     633  cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra}_${scat}
    603634  echo '****************************************'
    604635
     
    655686                        echo 'Looks good ! wrf.exe is here...'
    656687                      fi
    657                     cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    658                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     688                    cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     689                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    659690                    cd ..  ;;
    660691    'ideal')        #mkdir 'test/em_quarter_ss' 2> /dev/null
     
    671702                        echo 'Looks good ! wrf.exe is here...'
    672703                      fi
    673                     cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    674                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     704                    cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     705                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    675706                    cd ..  ;;
    676707    'les')          echo '>>> YOUR CONFIG IS : '${config}
     
    687718                        echo 'Looks good ! wrf.exe is here...'
    688719                      fi
    689                     cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    690                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     720                    cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     721                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    691722                    cd ..  ;;
    692723    *)              echo not supported... please use ; echo ideal les ; exit ;;
     
    700731  echo 'done.'
    701732  echo '****************************************'
    702   cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}
     733  cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}
    703734  mv last ../../
    704735
Note: See TracChangeset for help on using the changeset viewer.