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

Sebastien R. 03/06/2021: bugfix HON budget on Ri was not equivalent to its...

Sebastien R. 03/06/2021: bugfix HON budget on Ri was not equivalent to its value use in the physics computations (impacted only the budget)
parent d2e734e0
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,7 @@ REAL, DIMENSION(KSIZE), INTENT(INOUT) :: PA_RG ...@@ -114,7 +114,7 @@ REAL, DIMENSION(KSIZE), INTENT(INOUT) :: PA_RG
!* 0.2 declaration of local variables !* 0.2 declaration of local variables
! !
REAL, DIMENSION(KSIZE) :: ZCRIAUTI, ZMASK REAL, DIMENSION(KSIZE) :: ZCRIAUTI, ZMASK
REAL :: ZTIMAUTIC,ZRCHONI REAL :: ZTIMAUTIC
INTEGER :: JL INTEGER :: JL
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
! !
...@@ -136,15 +136,14 @@ IF(LDSOFT) THEN ...@@ -136,15 +136,14 @@ IF(LDSOFT) THEN
ELSE ELSE
PRCHONI(:) = 0. PRCHONI(:) = 0.
WHERE(ZMASK(:)==1.) WHERE(ZMASK(:)==1.)
PRCHONI(:) = XHON*PRHODREF(:)*PRCT(:) & PRCHONI(:) = MIN(1000.,XHON*PRHODREF(:)*PRCT(:) &
*EXP( XALPHA3*(PT(:)-XTT)-XBETA3 ) *EXP( XALPHA3*(PT(:)-XTT)-XBETA3 ))
ENDWHERE ENDWHERE
ENDIF ENDIF
DO JL=1, KSIZE DO JL=1, KSIZE
ZRCHONI=MIN(PRCHONI(JL),1000.) PA_RI(JL) = PA_RI(JL) + PRCHONI(JL)
PA_RI(JL) = PA_RI(JL) + ZRCHONI PA_RC(JL) = PA_RC(JL) - PRCHONI(JL)
PA_RC(JL) = PA_RC(JL) - ZRCHONI PA_TH(JL) = PA_TH(JL) + PRCHONI(JL)*(PLSFACT(JL)-PLVFACT(JL))
PA_TH(JL) = PA_TH(JL) + ZRCHONI*(PLSFACT(JL)-PLVFACT(JL))
ENDDO ENDDO
! !
!* 3.4 compute the deposition, aggregation and autoconversion sources !* 3.4 compute the deposition, aggregation and autoconversion sources
......
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