Bugfix: do not clean fluxRequired

This commit is contained in:
Hrvoje Jasak 2016-08-01 14:42:07 +01:00
parent 23a3dcfada
commit 82af003df0

View file

@ -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"))