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

Jean W. 18/07/2024: SURFEX fix to avoid too violent spin-up in Post-treatment...

Jean W. 18/07/2024: SURFEX fix to avoid too violent spin-up in Post-treatment on fluxes to avoid extra-large positive latent and negative sensible fluxes
parent 5e89d7d9
No related branches found
No related tags found
No related merge requests found
...@@ -399,6 +399,11 @@ WHERE (PLE_HVEG>PRN_HVEG .AND. PEK%XTV<PTA-1.) ...@@ -399,6 +399,11 @@ WHERE (PLE_HVEG>PRN_HVEG .AND. PEK%XTV<PTA-1.)
ZDELTA_H = PRHOA * XCPD * ZVEG * (ZDT ) / PEK%XRESA / PEXNS ZDELTA_H = PRHOA * XCPD * ZVEG * (ZDT ) / PEK%XRESA / PEXNS
ZDELTA_G = ZVEG * ZCHEATV * ZDT / PTSTEP ZDELTA_G = ZVEG * ZCHEATV * ZDT / PTSTEP
ZDELTA_LE= - ZDELTA_H - ZDELTA_G ZDELTA_LE= - ZDELTA_H - ZDELTA_G
!
! J. Wurtz & V. Masson Check if ZDELTA_LE > 0 to avoid too violent spin-up
! Residual is increased of remaining energy
ZDELTA_LE= MAX(ZDELTA_LE, -PLE_HVEG)
ZDELTA_G= - ZDELTA_H - ZDELTA_LE
END WHERE END WHERE
! !
PH_HVEG (:) = PH_HVEG (:) + ZDELTA_H (:) PH_HVEG (:) = PH_HVEG (:) + ZDELTA_H (:)
......
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