Skip to content
Snippets Groups Projects
Commit 2bc09bd1 authored by RODIER Quentin's avatar RODIER Quentin
Browse files

Quentin 29/09/2023: Modify CYCLE on horizontal dimensions for adaptation to column computation

parent 017715cd
No related branches found
No related tags found
No related merge requests found
...@@ -106,14 +106,11 @@ DO JIJ = IIJB, IIJE ...@@ -106,14 +106,11 @@ DO JIJ = IIJB, IIJE
SSIU(JIJ) = MIN(ZI2W,ZRHI) SSIU(JIJ) = MIN(ZI2W,ZRHI)
SSIO(JIJ) = SSIU(JIJ) SSIO(JIJ) = SSIU(JIJ)
W2D(JIJ) = 1. W2D(JIJ) = 1.
IF (PT(JIJ)>273.1 .OR. ZR<=0. .OR. ESATI(PT(JIJ)) >= PP(JIJ)*0.5) THEN IF (PT(JIJ)>273.1 .OR. ZR<=0. .OR. ESATI(PT(JIJ)) >= PP(JIJ)*0.5) THEN
SSIU(JIJ) = SSIU(JIJ) - 1. SSIU(JIJ) = SSIU(JIJ) - 1.
SSIO(JIJ) = SSIU(JIJ) SSIO(JIJ) = SSIU(JIJ)
IF(PWCLD(JIJ)>=0.) SIFRC(JIJ) = PWCLD(JIJ) IF(PWCLD(JIJ)>=0.) SIFRC(JIJ) = PWCLD(JIJ)
CYCLE ELSE
ENDIF
ZRHIN = MAX(0.05, MIN(1.,ZRHW)) ZRHIN = MAX(0.05, MIN(1.,ZRHW))
...@@ -200,7 +197,7 @@ DO JIJ = IIJB, IIJE ...@@ -200,7 +197,7 @@ DO JIJ = IIJB, IIJE
SSIO(JIJ) = SSIO(JIJ) - 1. SSIO(JIJ) = SSIO(JIJ) - 1.
IF (XW2D > 1.) W2D(JIJ) = 1./(1. - SIFRC(JIJ) + XW2D*SIFRC(JIJ)) IF (XW2D > 1.) W2D(JIJ) = 1./(1. - SIFRC(JIJ) + XW2D*SIFRC(JIJ))
END IF
ENDDO ENDDO
IF (LHOOK) CALL DR_HOOK('ICECLOUD',1,ZHOOK_HANDLE) IF (LHOOK) CALL DR_HOOK('ICECLOUD',1,ZHOOK_HANDLE)
......
...@@ -84,18 +84,18 @@ BL_DEPTH_DIAG3D(:) = 0. ...@@ -84,18 +84,18 @@ BL_DEPTH_DIAG3D(:) = 0.
! !
DO JIJ=IIJB,IIJE DO JIJ=IIJB,IIJE
IF (PSURF(JIJ)==0.) CYCLE IF (PSURF(JIJ)/=0.) THEN
DO JK=IKB,IKE,IKL DO JK=IKB,IKE,IKL
IF (PZZ(JIJ,JK-IKL)<=PZS(JIJ)) CYCLE IF (PZZ(JIJ,JK-IKL)>PZS(JIJ)) THEN
ZFLX = PSURF(JIJ) * PFTOP_O_FSURF ZFLX = PSURF(JIJ) * PFTOP_O_FSURF
IF ( (PFLUX(JIJ,JK)-ZFLX)*(PFLUX(JIJ,JK-IKL)-ZFLX) <= 0. ) THEN IF ( (PFLUX(JIJ,JK)-ZFLX)*(PFLUX(JIJ,JK-IKL)-ZFLX) <= 0. ) THEN
BL_DEPTH_DIAG3D(JIJ) = (PZZ (JIJ,JK-IKL) - PZS(JIJ)) & BL_DEPTH_DIAG3D(JIJ) = (PZZ (JIJ,JK-IKL) - PZS(JIJ)) &
+ (PZZ (JIJ,JK) - PZZ (JIJ,JK-IKL)) & + (PZZ (JIJ,JK) - PZZ (JIJ,JK-IKL)) &
* (ZFLX - PFLUX(JIJ,JK-IKL) ) & * (ZFLX - PFLUX(JIJ,JK-IKL) ) &
/ (PFLUX(JIJ,JK) - PFLUX(JIJ,JK-IKL) ) / (PFLUX(JIJ,JK) - PFLUX(JIJ,JK-IKL) )
EXIT
END IF END IF
END DO END DO
END IF
END DO END DO
! !
!$mnh_expand_array(JIJ=IIJB:IIJE) !$mnh_expand_array(JIJ=IIJB:IIJE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment