From 603badd196e88997b2927fc44298b5b48451e3af Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 3 Sep 2019 12:34:43 +0100 Subject: [PATCH] ENH: advectionDiffusion: avoid recursion. See #71. Does not fix the tolerance issue. --- .../advectionDiffusion/advectionDiffusionPatchDistMethod.C | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fvMesh/wallDist/patchDistMethods/advectionDiffusion/advectionDiffusionPatchDistMethod.C b/src/finiteVolume/fvMesh/wallDist/patchDistMethods/advectionDiffusion/advectionDiffusionPatchDistMethod.C index 8d0cbfdbf0..ec5177909e 100644 --- a/src/finiteVolume/fvMesh/wallDist/patchDistMethods/advectionDiffusion/advectionDiffusionPatchDistMethod.C +++ b/src/finiteVolume/fvMesh/wallDist/patchDistMethods/advectionDiffusion/advectionDiffusionPatchDistMethod.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2016-2018 OpenCFD Ltd. + \\ / A nd | Copyright (C) 2016-2019 OpenCFD Ltd. \\/ M anipulation | ------------------------------------------------------------------------------- | Copyright (C) 2015-2017 OpenFOAM Foundation @@ -58,7 +58,10 @@ Foam::patchDistMethods::advectionDiffusion::advectionDiffusion ) : patchDistMethod(mesh, patchIDs), - coeffs_(dict.optionalSubDict(type() + "Coeffs")), + //- We do not want to recurse into 'advectionDiffusion' again so + // make sure we pick up 'method' always from the subdictionary. + //coeffs_(dict.optionalSubDict(type() + "Coeffs")), + coeffs_(dict.subDict(type() + "Coeffs")), pdmPredictor_ ( patchDistMethod::New