Changeset 1759 for trunk


Ignore:
Timestamp:
Jul 26, 2017, 12:00:08 AM (7 years ago)
Author:
aslmd
Message:

MESOSCALE MARS and VENUS. corrected two bugs left from changes in r1755. 1) phour_ini was misplaced thus not set correctly. 2) pdtheta was not allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F.new

    r1755 r1759  
    365365! ALLOCATE !
    366366!----------!
    367 !!-------------------------------------------------------------------------------!
    368 !! outputs:                                                                     !       
    369 !!    pdu(ngrid,nlayermx)        \                                              !
    370 !!    pdv(ngrid,nlayermx)         \  Temporal derivative of the corresponding   !
    371 !!    pdt(ngrid,nlayermx)         /  variables due to physical processes.       !
    372 !!    pdq(ngrid,nlayermx)        /                                              !
    373 !!    pdpsrf(ngrid)             /                                               !
    374 !!-------------------------------------------------------------------------------!
    375 !ALLOCATE(pdpsrf(ngrid))
    376 !ALLOCATE(pdu(ngrid,nlayer))
    377 !ALLOCATE(pdv(ngrid,nlayer))
    378 !ALLOCATE(pdt(ngrid,nlayer))
    379 !ALLOCATE(pdtheta(ngrid,nlayer))
    380 !ALLOCATE(pdq(ngrid,nlayer,nq))
    381367CALL allocate_interface(ngrid,nlayer,nq)
     368ALLOCATE(pdtheta(ngrid,nlayer))
    382369!!!
    383370!!! BIG LOOP : 1. no call for physics, used saved values
     
    440427            lct_input,lon_input,ls_input,&
    441428            MY)
     429  !! Set up initial time
     430  phour_ini = JH_cur_split
    442431  !! Fill planetary parameters in modules
    443432  !! Values defined in the module_model_constants.F WRF routine
     
    447436                     wdaysec,floor(JD_cur), &
    448437                     1./reradius,g,r_d,cp,1)
    449   !! Set up initial time
    450   phour_ini = JH_cur_split
    451438ENDIF allocation_firstcall
    452439
     
    775762    RTHBLTEN(i,kps:kpe,j) = pdtheta(subs,kps:kpe)
    776763  ELSE
    777    RTHBLTEN(i,kps:kpe,j) = zdtfi_omp(subs,kps:kpe) / exner(i,kps:kpe,j)
     764    RTHBLTEN(i,kps:kpe,j) = zdtfi_omp(subs,kps:kpe) / exner(i,kps:kpe,j)
    778765  ENDIF
    779766    ! update surface pressure (cf CO2 cycle in physics)
Note: See TracChangeset for help on using the changeset viewer.