Ignore:
Timestamp:
Mar 5, 2015, 11:12:22 AM (10 years ago)
Author:
aslmd
Message:

added radiative heating for NOPHYS. corrected a problem with Q2 dimensions.

File:
1 edited

Legend:

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

    r1236 r1388  
    123123REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(IN ) :: &
    124124     dz8w,p8w,p,exner,t,t8w,rho,u,v,w,z,th
    125 REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT ) :: &
     125!REAL, DIMENSION( ims:ime, kms:kme+1, jms:jme ), INTENT(INOUT ) :: &
     126!     M_Q2
     127REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: &
    126128     M_Q2
    127129!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    164166   REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT)  :: PSFC,TSK
    165167   REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(OUT)  :: RTHBLTEN,RUBLTEN,RVBLTEN
     168   REAL,DIMENSION(:),ALLOCATABLE,SAVE :: dtsw,dtlw
    166169#endif
    167170!-------------------------------------------
     
    855858! specific treatment for tracers !
    856859!--------------------------------!
     860#ifndef NOPHYS
    857861#ifdef NEWPHYS
    858862IF (MARS_MODE .EQ. 0) THEN
     
    886890END SELECT
    887891#endif
     892#endif
    888893
    889894!!**********************************************************!!
     
    10431048! Tracer at surface !
    10441049!-------------------!
     1050#ifndef NOPHYS
    10451051SELECT CASE (MARS_MODE)
    10461052    CASE(0) 
     
    10801086
    10811087END SELECT
     1088#endif
    10821089
    10831090!-------------------!
     
    12191226! Tracers ! 
    12201227!---------!
     1228#ifndef NOPHYS
    12211229#ifdef NEWPHYS
    12221230pq(subs,:,:) = q_prof(:,:)  !! traceurs generiques, seuls noms sont specifiques
     
    12341242    STOP   
    12351243END SELECT
     1244#endif
    12361245#endif
    12371246ENDDO
     
    14861495ENDIF
    14871496
     1497#ifdef NOPHYS
     1498!!!!!!!!!!!!!!!!!!!
     1499!!!!!!!!!!!!!!!!!!!
     1500IF (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)
     1505ENDIF
     1506!print *, "SW", dtsw(kps:kpe) ! sw
     1507!print *, "LW", dtlw(kps:kpe) ! lw
     1508DO i= 1,ngrid
     1509  pdt(i,kps:kpe) = dtsw(1:nlayer) + dtlw(1:nlayer)
     1510ENDDO
     1511!!!!!!!!!!!!!!!!!!!
     1512!!!!!!!!!!!!!!!!!!!
     1513#endif
     1514
    14881515DO j = jps,jpe
    14891516DO i = ips,ipe
     
    15481575! Tracers ! 
    15491576!---------!
     1577#ifndef NOPHYS
    15501578#ifdef NEWPHYS
    15511579SCALAR(i,kps:kpe,j,1)=0.
     
    15911619END SELECT
    15921620#endif
     1621#endif
    15931622        !!TODO: check if adding the whole tendency once, and set the
    15941623        !!TODO: following tendencies to 0 until physics is called again
Note: See TracChangeset for help on using the changeset viewer.