Ignore:
Timestamp:
Aug 30, 2016, 3:04:29 PM (8 years ago)
Author:
aslmd
Message:

moved interface for outputs from module_lmd_driver to update_outputs_physiq_mod. updated the nophysics case by adding a case dynphy_wrf_void_lmd_new which will serve as a template for a physiq interface

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/comm_wrf.F90

    r1236 r1590  
    33!!
    44!! This module is useful to output fields in WRF style
     5!! -- useful for diagnostics that are not already in modules
    56!!
    67
     
    2324  integer,intent(in) :: ngrid ! number of atmospheric columns
    2425  integer,intent(in) :: nlayer ! number of atmospheric layers
    25   allocate(comm_HR_SW(ngrid,nlayer))
    26   allocate(comm_HR_LW(ngrid,nlayer))
    27   allocate(comm_SWDOWNZ(ngrid))
    28   allocate(comm_TAU_DUST(ngrid))
    29   allocate(comm_RDUST(ngrid,nlayer))
    30   allocate(comm_QSURFDUST(ngrid))
    31   allocate(comm_MTOT(ngrid))
    32   allocate(comm_ICETOT(ngrid))
    33   allocate(comm_VMR_ICE(ngrid,nlayer))
    34   allocate(comm_TAU_ICE(ngrid))
    35   allocate(comm_RICE(ngrid,nlayer))
     26  if (.not.allocated(comm_HR_SW)) allocate(comm_HR_SW(ngrid,nlayer))
     27  if (.not.allocated(comm_HR_LW)) allocate(comm_HR_LW(ngrid,nlayer))
     28  if (.not.allocated(comm_SWDOWNZ)) allocate(comm_SWDOWNZ(ngrid))
     29  if (.not.allocated(comm_TAU_DUST)) allocate(comm_TAU_DUST(ngrid))
     30  if (.not.allocated(comm_RDUST)) allocate(comm_RDUST(ngrid,nlayer))
     31  if (.not.allocated(comm_QSURFDUST)) allocate(comm_QSURFDUST(ngrid))
     32  if (.not.allocated(comm_MTOT)) allocate(comm_MTOT(ngrid))
     33  if (.not.allocated(comm_ICETOT)) allocate(comm_ICETOT(ngrid))
     34  if (.not.allocated(comm_VMR_ICE)) allocate(comm_VMR_ICE(ngrid,nlayer))
     35  if (.not.allocated(comm_TAU_ICE)) allocate(comm_TAU_ICE(ngrid))
     36  if (.not.allocated(comm_RICE)) allocate(comm_RICE(ngrid,nlayer))
    3637  end subroutine allocate_comm_wrf
    3738
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r1579 r1590  
    19931993      !! --> example : hfmax_th, zmax_th
    19941994
     1995      CALL allocate_comm_wrf(ngrid,nlayer)
     1996
    19951997      !state  real  HR_SW     ikj   misc  1  -  h  "HR_SW"     "HEATING RATE SW"                 "K/s"
    19961998      comm_HR_SW(1:ngrid,1:nlayer) = zdtsw(1:ngrid,1:nlayer)
Note: See TracChangeset for help on using the changeset viewer.