Changeset 1388 for trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2
- Timestamp:
- Mar 5, 2015, 11:12:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F
r1236 r1388 123 123 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(IN ) :: & 124 124 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 127 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(INOUT ) :: & 126 128 M_Q2 127 129 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 164 166 REAL, DIMENSION( ims:ime, jms:jme ), INTENT(INOUT) :: PSFC,TSK 165 167 REAL, DIMENSION( ims:ime, kms:kme, jms:jme ), INTENT(OUT) :: RTHBLTEN,RUBLTEN,RVBLTEN 168 REAL,DIMENSION(:),ALLOCATABLE,SAVE :: dtsw,dtlw 166 169 #endif 167 170 !------------------------------------------- … … 855 858 ! specific treatment for tracers ! 856 859 !--------------------------------! 860 #ifndef NOPHYS 857 861 #ifdef NEWPHYS 858 862 IF (MARS_MODE .EQ. 0) THEN … … 886 890 END SELECT 887 891 #endif 892 #endif 888 893 889 894 !!**********************************************************!! … … 1043 1048 ! Tracer at surface ! 1044 1049 !-------------------! 1050 #ifndef NOPHYS 1045 1051 SELECT CASE (MARS_MODE) 1046 1052 CASE(0) … … 1080 1086 1081 1087 END SELECT 1088 #endif 1082 1089 1083 1090 !-------------------! … … 1219 1226 ! Tracers ! 1220 1227 !---------! 1228 #ifndef NOPHYS 1221 1229 #ifdef NEWPHYS 1222 1230 pq(subs,:,:) = q_prof(:,:) !! traceurs generiques, seuls noms sont specifiques … … 1234 1242 STOP 1235 1243 END SELECT 1244 #endif 1236 1245 #endif 1237 1246 ENDDO … … 1486 1495 ENDIF 1487 1496 1497 #ifdef NOPHYS 1498 !!!!!!!!!!!!!!!!!!! 1499 !!!!!!!!!!!!!!!!!!! 1500 IF (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 1508 DO i= 1,ngrid 1509 pdt(i,kps:kpe) = dtsw(1:nlayer) + dtlw(1:nlayer) 1510 ENDDO 1511 !!!!!!!!!!!!!!!!!!! 1512 !!!!!!!!!!!!!!!!!!! 1513 #endif 1514 1488 1515 DO j = jps,jpe 1489 1516 DO i = ips,ipe … … 1548 1575 ! Tracers ! 1549 1576 !---------! 1577 #ifndef NOPHYS 1550 1578 #ifdef NEWPHYS 1551 1579 SCALAR(i,kps:kpe,j,1)=0. … … 1591 1619 END SELECT 1592 1620 #endif 1621 #endif 1593 1622 !!TODO: check if adding the whole tendency once, and set the 1594 1623 !!TODO: following tendencies to 0 until physics is called again
Note: See TracChangeset
for help on using the changeset viewer.