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

Location:
trunk/MESOSCALE/LMD_MM_MARS/SRC
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/SCRIPTS/copy_model

    r1249 r1578  
    133133mkdir mars_lmd/libf/phymars
    134134ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phymars/* mars_lmd/libf/phymars/
     135ln -sf $WRFSRC/WRFV2/mars_lmd/libf/phy_common/* mars_lmd/libf/phymars/
    135136mkdir mars_lmd/libf/dyn3d
    136137ln -sf $WRFSRC/WRFV2/mars_lmd/libf/dyn3d/* mars_lmd/libf/dyn3d/
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F.new

    r1577 r1578  
    6262   USE update_outputs_physiq_mod !! to get outputs from physiq
    6363   USE comm_wrf !! to get fields to be written from physiq
     64   USE physiq_mod, only : physiq
     65   USE phys_state_var_init_mod, only : phys_state_var_init
     66   !!! ajouter init_time (voir iniphysiq. ne plus le faire dans la physiq)
    6467#endif
    6568
     
    139142   REAL :: pday,ptime,MY 
    140143   REAL :: phisfi_val
    141    LOGICAL :: firstcall,lastcall,tracerdyn
     144   LOGICAL :: firstcall,lastcall
    142145   ! ----------
    143146   REAL,DIMENSION(:,:),ALLOCATABLE :: pplev,pplay,pphi,pu,pv,pt,pw
     
    375378!    pdq(ngrid,nlayermx)        /                                               !
    376379!    pdpsrf(ngrid)             /                                                !
    377 !    tracerdyn                 call tracer in dynamical part of GCM ?           !
    378380!-------------------------------------------------------------------------------!
    379381ALLOCATE(pdpsrf(ngrid))
     
    446448  !! parameters are defined in the module_model_constants.F WRF routine
    447449  PRINT *,'** Mars ** INITIALIZE ARRAYS FOR PHYSICS'
     450  !! need to get initial time first
     451  CALL update_inputs_physiq_time(&
     452            JULYR,JULDAY,GMT,&
     453            elaps,&
     454            lct_input,lon_input,ls_input,&
     455            ptime,pday,MY)
     456  !!
    448457  CALL phys_state_var_init(ngrid,nlayer,nq,&
     458                           floor(pday),ptime,&
    449459                           wdaysec,ptimestep,1/reradius,g,r_d,cp)
    450460  !! Fill planetary parameters in modules
     
    653663             firstcall,lastcall,pday,ptime,ptimestep, &
    654664             pplev,pplay,pphi,pu,pv,pt,pq,pw,         &
    655              pdu,pdv,pdt,pdq,pdpsrf,tracerdyn)
     665             pdu,pdv,pdt,pdq,pdpsrf)
    656666#endif
    657667
Note: See TracChangeset for help on using the changeset viewer.