From 5da45a2131faca72bb6fad4effac035c9c9e73a3 Mon Sep 17 00:00:00 2001 From: Philippe WAUTELET <philippe.wautelet@aero.obs-mip.fr> Date: Thu, 21 Jan 2021 13:20:38 +0100 Subject: [PATCH] Philippe 21/01/2021: initialize untouched part of PFPR --- src/MNH/ice4_sedimentation_stat.f90 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/MNH/ice4_sedimentation_stat.f90 b/src/MNH/ice4_sedimentation_stat.f90 index 4dcf0ff8b..b25b5a90f 100644 --- a/src/MNH/ice4_sedimentation_stat.f90 +++ b/src/MNH/ice4_sedimentation_stat.f90 @@ -1,4 +1,4 @@ -!MNH_LIC Copyright 1994-2020 CNRS, Meteo-France and Universite Paul Sabatier +!MNH_LIC Copyright 1994-2021 CNRS, Meteo-France and Universite Paul Sabatier !MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence !MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt !MNH_LIC for details. version 1. @@ -74,6 +74,7 @@ SUBROUTINE ICE4_SEDIMENTATION_STAT(KIB, KIE, KIT, KJB, KJE, KJT, KKB, KKE, KKTB, !! ! P. Wautelet 10/04/2019: replace ABORT and STOP calls by Print_msg ! P. Wautelet 28/05/2019: move COUNTJV function to tools.f90 +! P. Wautelet 21/01/2021: initialize untouched part of PFPR ! ! !* 0. DECLARATIONS @@ -138,6 +139,12 @@ LOGICAL, DIMENSION(SIZE(PRHODREF,1),SIZE(PRHODREF,2)):: GDEP !------------------------------------------------------------------------------- ! ZINVTSTEP=1./PTSTEP + +IF ( PRESENT( PFPR ) ) THEN + !Set to 0. to avoid undefined values (in files) + PFPR(:, :, : KKTB - 1, :) = 0. + PFPR(:, :, KKTE + 1 :, :) = 0. +END IF !------------------------------------------------------------------------------- ! !* 1. compute the fluxes -- GitLab