Changeset 3438 for trunk/LMDZ.PLUTO/libf/phypluto
- Timestamp:
- Sep 25, 2024, 4:43:31 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.PLUTO/libf/phypluto/condense_n2.F90
r3421 r3438 171 171 172 172 ! calculate global mean surface pressure for the fast mode 173 IF (.not. ALLOCATED(kp)) ALLOCATE(kp(klon)) 174 DO ig=1,klon 175 kp(ig) = exp(-phisfi(ig)/(r*38.)) 176 ENDDO 173 177 IF (fast) THEN 174 IF (.not. ALLOCATED(kp)) ALLOCATE(kp(klon))175 DO ig=1,klon176 kp(ig) = exp(-phisfi(ig)/(r*38.))177 ENDDO178 178 p00=glob_average2d(kp) ! mean pres at ref level 179 179 ENDIF … … 382 382 pdpsrf(ig) = -pdicen2(ig)*g 383 383 ! pdpsrf(ig) = 0. ! OPTION to check impact N2 sub/cond 384 IF ( zplev(ig)+pdpsrf(ig)*subtimestep.le.0.0000001) then384 IF (fast.and.(zplev(ig)+pdpsrf(ig)*subtimestep.le.0.0000001)) then 385 385 pdpsrf(ig)=(0.0000001*kp(ig)/p00-zplev(ig))/subtimestep 386 386 pdicen2(ig)=-pdpsrf(ig)/g … … 855 855 Mtot = masse(m) 856 856 MQtot = masse(m)*q(m) 857 !if (m.lt.klev) then ! because some compilers will have problems858 !! evaluating masse(klev+1)857 if (m.lt.klev) then ! because some compilers will have problems 858 ! evaluating masse(klev+1) 859 859 do while ((m.lt.klev).and.(w(l+1).gt.(Mtot+masse(m+1)))) 860 860 m=m+1 861 861 Mtot = Mtot + masse(m) 862 862 MQtot = MQtot + masse(m)*q(m) 863 !if (m.eq.klev) exit863 if (m.eq.klev) exit 864 864 end do 865 !endif865 endif 866 866 if (m.lt.klev) then 867 867 sigw=(w(l+1)-Mtot)/masse(m+1)
Note: See TracChangeset
for help on using the changeset viewer.