Ignore:
Timestamp:
May 11, 2015, 7:54:05 AM (10 years ago)
Author:
aslmd
Message:

nophys LES. corrected a bug in parallel in heating rates prescription

Location:
trunk/MESOSCALE/LMD_MM_MARS/SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/LES/modif_mars/module_initialize_les.F.venus

    r1398 r1425  
    877877    DO k=1,kte-1
    878878       p_level = grid%znu(k)*(pd_surf - grid%p_top) + grid%p_top
    879        !!! we use Q2 as a vehicle for heating rates! sick!
    880        grid%m_q2(1,k,1) = interp_0( profdustq, pd_in, p_level, nl_in )
    881        grid%m_q2(2,k,2) = interp_0( profdustn, pd_in, p_level, nl_in )
     879       DO j = jts, jte
     880       DO i = its, ite
     881         !!! we use Q2 as a vehicle for heating rates! sick!
     882         grid%m_q2(i,k,j) = interp_0( profdustq, pd_in, p_level, nl_in ) &
     883                          + interp_0( profdustn, pd_in, p_level, nl_in )
     884       ENDDO
     885       ENDDO
    882886    ENDDO
    883     print *, "HEATING RATE SW", grid%m_q2(1,:,1)
    884     print *, "HEATING RATE LW", grid%m_q2(2,:,2)
    885887!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    886888!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F

    r1388 r1425  
    166166   REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT)  :: PSFC,TSK
    167167   REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(OUT)  :: RTHBLTEN,RUBLTEN,RVBLTEN
    168    REAL,DIMENSION(:),ALLOCATABLE,SAVE :: dtsw,dtlw
     168   REAL,DIMENSION(:),ALLOCATABLE,SAVE :: dtrad
    169169#endif
    170170!-------------------------------------------
     
    14991499!!!!!!!!!!!!!!!!!!!
    15001500IF (firstcall .EQV. .true.) THEN
    1501   ALLOCATE(dtsw(nlayer))
    1502   ALLOCATE(dtlw(nlayer))
    1503   dtsw(1:nlayer) = M_Q2(1,1:nlayer,1)
    1504   dtlw(1:nlayer) = M_Q2(2,1:nlayer,2)
    1505 ENDIF
    1506 !print *, "SW", dtsw(kps:kpe) ! sw
    1507 !print *, "LW", dtlw(kps:kpe) ! lw
     1501  ALLOCATE(dtrad(nlayer))
     1502  dtrad(1:nlayer) = M_Q2(1,1:nlayer,1)
     1503  print *, "HEATING RATE", dtrad(kps:kpe)
     1504ENDIF
    15081505DO i= 1,ngrid
    1509   pdt(i,kps:kpe) = dtsw(1:nlayer) + dtlw(1:nlayer)
     1506  pdt(i,kps:kpe) = dtrad(1:nlayer)
    15101507ENDDO
    15111508!!!!!!!!!!!!!!!!!!!
Note: See TracChangeset for help on using the changeset viewer.