diff --git a/src/common/turb/mode_turb_ver.F90 b/src/common/turb/mode_turb_ver.F90 index 6b6b3eb4237f662609ac7fb6ffbf6ea859f7c408..49ed101bb374d335175ae8b26f446b5bdf427f44 100644 --- a/src/common/turb/mode_turb_ver.F90 +++ b/src/common/turb/mode_turb_ver.F90 @@ -519,7 +519,7 @@ ENDIF PRTHLS,PRRS,ZTHLP,ZRP,PTP,PWTH,PWRC ) ! CALL TURB_VER_THERMO_CORR(KKA,KKU,KKL,KRR,KRRL,KRRI, & - OTURB_FLX,HTURBDIM,HTOM,OOCEAN, & + OTURB_FLX,HTURBDIM,HTOM, & PIMPL,PEXPL, & TPFILE, & PDXX,PDYY,PDZZ,PDZX,PDZY,PDIRCOSZW, & diff --git a/src/common/turb/mode_turb_ver_thermo_corr.F90 b/src/common/turb/mode_turb_ver_thermo_corr.F90 index a04c35ab90284997fcb3309dcf0a0c599c04d0e2..db08f0ce62947783ab09870fd2b49ff4d4245f2d 100644 --- a/src/common/turb/mode_turb_ver_thermo_corr.F90 +++ b/src/common/turb/mode_turb_ver_thermo_corr.F90 @@ -6,7 +6,7 @@ MODULE MODE_TURB_VER_THERMO_CORR IMPLICIT NONE CONTAINS SUBROUTINE TURB_VER_THERMO_CORR(KKA,KKU,KKL,KRR,KRRL,KRRI, & - OTURB_FLX,HTURBDIM,HTOM,OOCEAN, & + OTURB_FLX,HTURBDIM,HTOM, & PIMPL,PEXPL, & TPFILE, & PDXX,PDYY,PDZZ,PDZX,PDZY,PDIRCOSZW, & @@ -238,7 +238,6 @@ INTEGER, INTENT(IN) :: KRRL ! number of liquid water v INTEGER, INTENT(IN) :: KRRI ! number of ice water var. LOGICAL, INTENT(IN) :: OTURB_FLX ! switch to write the ! turbulent fluxes in the syncronous FM-file -LOGICAL, INTENT(IN) :: OOCEAN ! switch for Ocean model version CHARACTER(len=4), INTENT(IN) :: HTURBDIM ! dimensionality of the ! turbulence scheme CHARACTER(len=4), INTENT(IN) :: HTOM ! type of Third Order Moment @@ -845,8 +844,12 @@ ENDIF ! Extrapolate PSIGS at the ground and at the top PSIGS(:,:,KKA) = PSIGS(:,:,IKB) PSIGS(:,:,KKU) = PSIGS(:,:,IKE) - PSIGS(:,:,:) = MAX (PSIGS(:,:,:) , 0.) +#ifdef REPRO48 + PSIGS(:,:,:) = MAX (PSIGS(:,:,:) , 0.) PSIGS(:,:,:) = SQRT(PSIGS(:,:,:)) +#else + PSIGS(:,:,:) = SQRT( MAX (PSIGS(:,:,:) , 1.E-12) ) +#endif END IF !