Ignore:
Timestamp:
Feb 2, 2011, 10:14:07 PM (14 years ago)
Author:
aslmd
Message:

LMD_LES_MARS: Tests with new physics in unified frame
M 53 mesoscale/LMD_LES_MARS/modif_mars/module_model_constants.F
M 53 mesoscale/LMD_LES_MARS/modif_mars/module_first_rk_step_part1.F
M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
Modifications made to cope with new soil scheme

M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd/libf/phymars/meso_physiq.F
Commented aeronomars in old physics so that the model can compile with lots of grid points


LMD_MM_MARS: Implement tracers with the new physics. Test with JBM runs with 5 tracers

including radiatively active dust and water ice

TODO: propagate reading "traceur.def" and few initialisations from

testphys1d.F into module_lmd_driver.F

M 53 mars/libf/phymars/dimradmars.h
M 53 mars/libf/phymars/callradite.F
Change it back to both dust and ice radiatively active

M 53 mesoscale/LMD_MM_MARS/makemeso
Allow to "fresh start" with the inclusion of "clean -a" in the script

M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM
M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_real.F
M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/dyn_em/solve_em.F
M 53 mesoscale/LMD_MM_MARS/SRC/WRFV2/main/real_em.F
M 53 mesoscale/LMD_MM_MARS/SIMU/runmeso
Added the option mars==11 with 5 tracers: CO2 H2Ovap H2Oice DUST DUSTN
-- Note that the order matters for H2Ovap and H2Oice

LMD_MM_MARS: Create a folder to run LMD GCM with exact same physics as mesoscale

A 0 mesoscale/LMDZ.MARS/libf/phymars/physiq.F
All files in mesoscale/LMDZ.MARS/libf are links except this one
--> Because specific WRITEDIAGFI commands are set to output what is needed PREP_MARS
--> Something must be done so that qCO2, qdust, qdustN can be propagated too !!!

A 0 mesoscale/LMDZ.MARS/libf_gcm
A 0 mesoscale/LMDZ.MARS/in_lmdz_mars_newphys
Two important links that must not be broken

A 0 mesoscale/LMDZ.MARS/myGCM
This folder is for runs. Only links here -- except temp files which are not synchronized.

M 53 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/compile
A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/run.def
A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/traceur.def
M 53 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/callphys.def
A 0 mesoscale/LMD_MM_MARS/SIMU/in_lmdz_mars_newphys/myGCM/callphys.def.csttau
Those files are needed to run the GCM in order to prepare initial & boundary

conditions for the mesoscale... but basically it is the exact same GCM

--> compile is a convenient script

A 0 mesoscale/LMDZ.MARS/makegcm
A 0 mesoscale/LMDZ.MARS/makegcm_g95
A 0 mesoscale/LMDZ.MARS/create_make_gcm
This is supposed to be merged one day with files in trunk/mars/

A 0 mesoscale/LMDZ.MARS/myGCM/DEFS_JB
Necessary files to restart a GCM run corresponding to new water cycle in JB's thesis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mesoscale/LMD_MM_MARS/makemeso

    r50 r54  
    5252justphys=0
    5353debug=0
     54fresh_start=0
    5455phys=""
    55 while getopts "drc:njhgp" options; do
     56while getopts "drc:njhgpf" options; do
    5657  case $options in
    5758   d ) donotcompile=1;;     ## just to check the compile folder
     
    6162   j ) justphys=1;;         ## just compile LMD physics
    6263   g ) debug=1;;            ## debug mode
    63    p ) phys="newphys_";;
     64   p ) phys="newphys_";;    ## with new physics
     65   f ) fresh_start=1;;      ## a fresh start
    6466   h ) echo "
    6567# Use:   
     
    8385#
    8486# makemeso -p                ## with new LMD physics
     87#
     88# makemeso -f                ## fresh start [clean -a]
    8589" ; exit ;;
    8690  esac
     
    185189    if [[ "${phys}" == "newphys_" ]]
    186190    then
    187     sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp
    188     chmod 755 copy_model_tmp
    189     ./copy_model_tmp
    190     \rm copy_model_tmp
    191     mv WRFV2 ${conf_wrf}/
    192     cd ${conf_wrf}/WRFV2
    193     ln -sf mars_lmd_new mars_lmd
    194     ln -sf meso_callkeys_newphys.h meso_callkeys.h
    195     cd Registry ; Registry.bash ; cd ..
     191     sed s+"mars_lmd"+"mars_lmd_new"+g copy_model > copy_model_tmp
     192     chmod 755 copy_model_tmp
     193     ./copy_model_tmp
     194     \rm copy_model_tmp
     195     mv WRFV2 ${conf_wrf}/
     196     cd ${conf_wrf}/WRFV2
     197     ln -sf mars_lmd_new mars_lmd
     198     ln -sf meso_callkeys_newphys.h meso_callkeys.h
     199     cd Registry ; Registry.bash ; cd ..
    196200    else
    197     ./copy_model
    198     mv WRFV2 ${conf_wrf}/
    199     cd ${conf_wrf}/WRFV2
    200     cd Registry ; Registry.bash ; cd ..
    201     fi
     201     ./copy_model
     202     mv WRFV2 ${conf_wrf}/
     203     cd ${conf_wrf}/WRFV2
     204     cd Registry ; Registry.bash ; cd ..
     205     fi
    202206  else
    203207    cd ${conf_wrf}/WRFV2
    204     echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer
    205     case ${answer} in
    206       y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;;
    207       *) answer='no' ;;
    208     esac
     208    if [ ${fresh_start} -eq 1 ]
     209    then
     210      echo '*** FRESH START, I clean everything'
     211      clean -a > /dev/null 2> /dev/null
     212      cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd ..
     213      answer='y' ## a voir... pas si sur
     214    else
     215      echo Did you modify anything in the Registry or clean ? y for yes, any key for no ; read answer
     216      case ${answer} in
     217        y) cd Registry ; mv Registry Registry.bak ; Registry.bash ; cd .. ;;
     218        *) answer='no' ;;
     219      esac
     220    fi
    209221  fi
    210222  # summary
Note: See TracChangeset for help on using the changeset viewer.