Ignore:
Timestamp:
Aug 22, 2016, 11:56:58 AM (8 years ago)
Author:
aslmd
Message:

Goal: make the mesoscale model compliant
with new interface philosophy and adapted
to easy interfacing with any physics

Commit 2:

  • cleaned makemeso (and removed meso_dimphys.h_ref)
  • added linking to phy_common in copy_model
  • changed module_lmd_driver.F to reflect that
    • physiq and phys_state_var_init are now within a module
    • their list of arguments changed

NB:

mesoscale model still not working

with HEAD version
... but is now compiling!

need now to fix e.g. geometry

... this will be done within a call
... to the equivalent of iniphysiq
... to make lmd_driver planet-agnostic

retrocompatbility with v1520 is lost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r1489 r1578  
    7676# makemeso -f                ## fresh start [clean -a]
    7777#
    78 # makemeso -e                ## a completely new recompile with erasing ALL compiling folder
     78# makemeso -e                ## a completely new recompile with erasing the WHOLE compiling folder
    7979#
    8080# makemeso -s DUSTSTORM      ## a specific scenario (with precompiling flags)
     
    250250     cd ..
    251251
    252      # remove files adapted to parallel GCM and useless for mesoscale
    253      cd mars_lmd
    254      cd libf/phymars
    255      \rm tabfi* soil_settings* phyetat0* phyredem* iostart* writediagfi* mkstat* writediagsoil* eofdump* wstats* inistats* mod_*
    256      \rm iniphysiq* init_phys_lmdz* comgeomphy* planetwide_mod*
    257      mv ../dyn3d/control_mod.F90 .
    258      cd ../..
    259      cd ..
     252     ## remove files adapted to parallel GCM and useless for mesoscale
     253     #cd mars_lmd
     254     #cd libf/phymars
     255     #\rm tabfi* soil_settings* phyetat0* phyredem* iostart* writediagfi* mkstat* writediagsoil* eofdump* wstats* inistats* mod_*
     256     #\rm iniphysiq* init_phys_lmdz* comgeomphy* planetwide_mod*
     257     #mv ../dyn3d/control_mod.F90 .
     258     #cd ../..
     259     #cd ..
    260260
    261261    else
     
    687687  cd libf/phymars
    688688  \rm dimphys.h 2> /dev/null
    689   if [[ "${phys}" == "newphys_" ]]
    690   then
    691     ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!
    692   else
     689#  if [[ "${phys}" == "newphys_" ]]
     690#  then
     691#    ln -sf ../../meso_dimphys.h_ref . ## ne sert plus !!
     692#  else
     693  if [[ "${phys}" != "newphys_" ]]
     694  then
    693695    physize=$(expr ${physx} \* ${physy})
    694696    sed s/--xsize--/${physx}/g meso_dimphys.h_ref | sed s/--ysize--/${physy}/g | sed s/--physize--/${physize}/g | sed s/--zsize--/${physz}/g | sed s/--soilsize--/${soilsize}/g > dimphys.h
    695697    head -15 dimphys.h
    696698  fi
    697      ### TEST new new phys
    698      if [[ "${phys}" == "newphys_" ]]
    699      then
    700        touch gr_fi_dyn.F.lien
    701          ln -sf ../dyn3d/gr_fi_dyn.F .  ## dommage, a corriger
    702      ###############################
    703      ###############################
    704      ###############################
    705      fi
    706      ###
    707      ###
     699     #### TEST new new phys
     700     #if [[ "${phys}" == "newphys_" ]]
     701     #then
     702     #  touch gr_fi_dyn.F.lien
     703     #    ln -sf ../dyn3d/gr_fi_dyn.F .  ## dommage, a corriger
     704     ################################
     705     ################################
     706     ################################
     707     #fi
     708     ####
     709     ####
    708710  cd ../..
    709711
Note: See TracChangeset for help on using the changeset viewer.