Skip to content
Snippets Groups Projects
Commit b6aae7aa authored by Juan Escobar's avatar Juan Escobar
Browse files

R.Schoetter 09/05/2022: Bugfix:Correction of BitReproductibiluty problem in CYCL + FLAT case

parent 57af99f9
No related branches found
No related tags found
No related merge requests found
...@@ -201,8 +201,20 @@ END IF ...@@ -201,8 +201,20 @@ END IF
! ------------------------------------ ! ------------------------------------
! !
IF (LFLAT) THEN IF (LFLAT) THEN
PRWCT(:,:,:) = PRWT(:,:,:) / PDZZ(:,:,:) !
RETURN PRWCT(:,:,:) = PRWT(:,:,:) / PDZZ(:,:,:)
!
IF (KADV_ORDER == 4 ) THEN
NULLIFY(TZFIELD_U)
NULLIFY(TZFIELD_V)
CALL ADD3DFIELD_ll( TZFIELD_U, PRUCT, 'CONTRAV::PRUCT' )
CALL ADD3DFIELD_ll( TZFIELD_V, PRVCT, 'CONTRAV::PRVCT' )
CALL UPDATE_HALO_ll(TZFIELD_U,IINFO_ll)
CALL UPDATE_HALO_ll(TZFIELD_V,IINFO_ll)
ENDIF
!
RETURN
!
END IF END IF
! !
!* 3. Compute the vertical contravariant components (general case) !* 3. Compute the vertical contravariant components (general case)
......
...@@ -153,6 +153,7 @@ use modd_budget, only: lbudget_u, lbudget_v, lbudget_w, lbudget_th, lbudg ...@@ -153,6 +153,7 @@ use modd_budget, only: lbudget_u, lbudget_v, lbudget_w, lbudget_th, lbudg
NBUDGET_RR, NBUDGET_RI, NBUDGET_RS, NBUDGET_RG, NBUDGET_RH, NBUDGET_SV1, & NBUDGET_RR, NBUDGET_RI, NBUDGET_RS, NBUDGET_RG, NBUDGET_RH, NBUDGET_SV1, &
lbu_beg, lbu_enable, tbudgets lbu_beg, lbu_enable, tbudgets
USE MODD_CONF USE MODD_CONF
use modd_conf_n, only: luserv
USE MODD_GRID_n USE MODD_GRID_n
use mode_budget, only: Budget_store_init, Budget_store_end use mode_budget, only: Budget_store_init, Budget_store_end
...@@ -213,11 +214,14 @@ IF (SIZE(PTKET,1) /= 0) THEN ...@@ -213,11 +214,14 @@ IF (SIZE(PTKET,1) /= 0) THEN
PRTKES(:,:,:) = PTKET(:,:,:) * ZINVTSTEP * PRHODJ(:,:,:) PRTKES(:,:,:) = PTKET(:,:,:) * ZINVTSTEP * PRHODJ(:,:,:)
END IF END IF
! !
! Case with KRR moist variables ! Case with KRR moist variables
DO JRR=1,KRR !
PRRS(:,:,:,JRR) = PRT(:,:,:,JRR) * ZINVTSTEP * PRHODJ(:,:,:) IF (LUSERV) THEN
END DO DO JRR=1,KRR
CALL MPPDB_CHECK3DM("initial_guess:PRRS/RT/RHO",PRECISION,PRRS(:,:,:,1) , PRT(:,:,:,1) , PRHODJ) PRRS(:,:,:,JRR) = PRT(:,:,:,JRR) * ZINVTSTEP * PRHODJ(:,:,:)
END DO
CALL MPPDB_CHECK3DM("initial_guess:PRRS/RT/RHO",PRECISION,PRRS(:,:,:,1) , PRT(:,:,:,1) , PRHODJ)
ENDIF
! !
! *** passive tracers ! *** passive tracers
! !
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment