Ignore:
Timestamp:
Apr 15, 2019, 4:11:11 PM (7 years ago)
Author:
jleconte
Message:

Changed the routing of the tracers so that the mean molecular weight of water vapor be taken into account in the dynamics.

File:
1 edited

Legend:

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

    r2070 r2123  
    3030        RTHBLTEN,RUBLTEN,RVBLTEN, &
    3131        num_3d_s,SCALAR, &
     32        num_3d_m,moist, &
    3233        MARS_MODE, &
    3334        planet_type, &
     
    124125     M_GW
    125126! 4D arrays
    126 INTEGER, INTENT(IN ) :: num_3d_s
    127 REAL, DIMENSION( ims:ime, kms:kme, jms:jme, 1:num_3d_s ), INTENT(INOUT ) :: &
    128      scalar
     127INTEGER, INTENT(IN ) :: num_3d_s,num_3d_m
     128REAL, DIMENSION( ims:ime, kms:kme, jms:jme, 1:num_3d_s ), INTENT(INOUT ) :: scalar
     129REAL, DIMENSION( ims:ime, kms:kme, jms:jme, 1:num_3d_m ), INTENT(INOUT ) ::  moist
    129130! Logical
    130131LOGICAL, INTENT(IN ) :: restart
     
    495496    q_prof(:,1)=0.95
    496497ELSE
    497     q_prof(:,1:nq) = SCALAR(i,kps:kpe,j,2:nq+1)  !! the names were set above !! one dummy tracer in WRF
     498    q_prof(:,1) = moist(i,kps:kpe,j,P_QV) !! the names were set above !! one dummy tracer in WRF
     499    q_prof(:,2) = SCALAR(i,kps:kpe,j,3) !! the names were set above !! one dummy tracer in WRF 
    498500ENDIF
    499501
     
    804806      SCALAR(i,1,j,2) = SCALAR(i,1,j,2) + 1. !! this tracer is emitted in the surface layer
    805807    CASE DEFAULT
    806       SCALAR(i,kps:kpe,j,2:nq+1)=SCALAR(i,kps:kpe,j,2:nq+1)+zdqfi_omp(subs,kps:kpe,1:nq)*dt  !!! here dt is needed
     808      moist(i,kps:kpe,j,P_QV)=moist(i,kps:kpe,j,P_QV)+zdqfi_omp(subs,kps:kpe,1)*dt  !!! here dt is needed
     809      scalar(i,kps:kpe,j,3)=scalar(i,kps:kpe,j,3)+zdqfi_omp(subs,kps:kpe,2)*dt  !!! here dt is needed
    807810  END SELECT
    808811   
Note: See TracChangeset for help on using the changeset viewer.