From 82af003df038a35ba100c63375edfcd9471542e8 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 1 Aug 2016 14:42:07 +0100 Subject: [PATCH] Bugfix: do not clean fluxRequired --- src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C index 85ead6e13..60e5b94cb 100644 --- a/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C +++ b/src/finiteVolume/finiteVolume/fvSchemes/fvSchemes.C @@ -53,10 +53,12 @@ void Foam::fvSchemes::clear() defaultSnGradScheme_.clear(); laplacianSchemes_.clear(); // optional defaultLaplacianScheme_.clear(); - fluxRequired_.clear(); - defaultFluxRequired_ = false; + + // Set up special handling for fluxRequired: do not clear + // HJ, 25/Jul/2016 } + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::fvSchemes::fvSchemes(const objectRegistry& obr) @@ -200,7 +202,7 @@ bool Foam::fvSchemes::read() { const dictionary& dict = schemesDict(); - // persistent settings across reads is incorrect + // Persistent settings across reads is incorrect clear(); if (dict.found("ddtSchemes"))