From ee6c241b69b4ce2b620658ae8ba1921f595d53a2 Mon Sep 17 00:00:00 2001 From: Tom Chen <> Date: Thu, 19 May 2022 10:08:10 -0400 Subject: [PATCH] BUG: atmBoundaryLayer: replace global groundMin with local min (fixes #2471) --- .../atmBoundaryLayer/atmBoundaryLayer.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.C b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.C index 5c5d0b5acb..79677beea9 100644 --- a/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.C +++ b/src/atmosphericModels/derivedFvPatchFields/atmBoundaryLayer/atmBoundaryLayer.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2014-2016 OpenFOAM Foundation - Copyright (C) 2018-2021 OpenCFD Ltd. + Copyright (C) 2018-2022 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -42,7 +42,7 @@ atmBoundaryLayer::atmBoundaryLayer(const Time& time, const polyPatch& pp) Cmu_(0.09), C1_(0.0), C2_(1.0), - ppMin_((boundBox(pp.points())).min()), + ppMin_((boundBox(pp.localPoints())).min()), time_(time), patch_(pp), flowDir_(nullptr), @@ -69,7 +69,7 @@ atmBoundaryLayer::atmBoundaryLayer Cmu_(dict.getCheckOrDefault("Cmu", 0.09, scalarMinMax::ge(SMALL))), C1_(dict.getOrDefault("C1", 0.0)), C2_(dict.getOrDefault("C2", 1.0)), - ppMin_((boundBox(pp.points())).min()), + ppMin_((boundBox(pp.localPoints())).min()), time_(time), patch_(pp), flowDir_(Function1::New("flowDir", dict, &time)),