From e3bb87dcf173b377c41d24de2bcaf6bb0519b184 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 27 Nov 2017 17:41:38 +0000 Subject: [PATCH] BUG: fieldMinMax: max cell --- src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C b/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C index 95389d0151..8d83972101 100644 --- a/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C +++ b/src/functionObjects/field/fieldMinMax/fieldMinMaxTemplates.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation - \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. + \\/ M anipulation | Copyright (C) 2015-2017 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -201,7 +201,7 @@ void Foam::functionObjects::fieldMinMax::calcMinMaxFields label maxi = findMax(maxVs); scalar maxValue = maxVs[maxi]; - const label maxCell = minCells[maxi]; + const label maxCell = maxCells[maxi]; const vector& maxC = maxCs[maxi]; output -- GitLab