Ignore:
Timestamp:
Jan 7, 2020, 10:32:52 PM (5 years ago)
Author:
aslmd
Message:

MESOSCALE: adapted what was proposed in r2123. created a mode mars=42 for water vapour used in dynamics (what was proposed in r2123). moved back the default behaviour for Mars that was removed in r2123.

File:
1 edited

Legend:

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

    r2123 r2208  
    495495IF (MARS_MODE .EQ. 0) THEN
    496496    q_prof(:,1)=0.95
    497 ELSE
     497ELSE IF (MARS_MODE .EQ. 42) THEN
    498498    q_prof(:,1) = moist(i,kps:kpe,j,P_QV) !! the names were set above !! one dummy tracer in WRF
    499499    q_prof(:,2) = SCALAR(i,kps:kpe,j,3) !! the names were set above !! one dummy tracer in WRF 
     500ELSE
     501    q_prof(:,1:nq) = SCALAR(i,kps:kpe,j,2:nq+1)  !! the names were set above !! one dummy tracer in WRF
    500502ENDIF
    501503
     
    512514  ENDIF
    513515ENDIF
    514 
    515516
    516517IF (firstcall .EQV. .true.) THEN
     
    805806      SCALAR(i,kps:kpe,j,2) = SCALAR(i,kps:kpe,j,2)*exp(-dt/tau_decay)
    806807      SCALAR(i,1,j,2) = SCALAR(i,1,j,2) + 1. !! this tracer is emitted in the surface layer
    807     CASE DEFAULT
     808    CASE(42)
    808809      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
    809810      scalar(i,kps:kpe,j,3)=scalar(i,kps:kpe,j,3)+zdqfi_omp(subs,kps:kpe,2)*dt  !!! here dt is needed
     811    CASE DEFAULT
     812      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
    810813  END SELECT
    811    
     814
    812815ENDDO
    813816ENDDO
Note: See TracChangeset for help on using the changeset viewer.