mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Moved the "cache" dictionary to solution because the concept is general.
This commit is contained in:
@ -52,7 +52,6 @@ void Foam::fvSchemes::clear()
|
||||
defaultLaplacianScheme_.clear();
|
||||
fluxRequired_.clear();
|
||||
defaultFluxRequired_ = false;
|
||||
cacheFields_.clear();
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
@ -169,15 +168,7 @@ Foam::fvSchemes::fvSchemes(const objectRegistry& obr)
|
||||
tokenList()
|
||||
)()
|
||||
),
|
||||
defaultFluxRequired_(false),
|
||||
cacheFields_
|
||||
(
|
||||
ITstream
|
||||
(
|
||||
objectPath() + "::cacheFields",
|
||||
tokenList()
|
||||
)()
|
||||
)
|
||||
defaultFluxRequired_(false)
|
||||
{
|
||||
read();
|
||||
}
|
||||
@ -381,11 +372,6 @@ bool Foam::fvSchemes::read()
|
||||
}
|
||||
}
|
||||
|
||||
if (dict.found("cacheFields"))
|
||||
{
|
||||
cacheFields_ = dict.subDict("cacheFields");
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@ -563,22 +549,4 @@ bool Foam::fvSchemes::fluxRequired(const word& name) const
|
||||
}
|
||||
|
||||
|
||||
bool Foam::fvSchemes::cache(const word& name) const
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
Info<< "Lookup cache for " << name << endl;
|
||||
}
|
||||
|
||||
if (cacheFields_.found(name))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -79,8 +79,6 @@ class fvSchemes
|
||||
dictionary fluxRequired_;
|
||||
bool defaultFluxRequired_;
|
||||
|
||||
dictionary cacheFields_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
@ -128,8 +126,6 @@ public:
|
||||
|
||||
bool fluxRequired(const word& name) const;
|
||||
|
||||
bool cache(const word& name) const;
|
||||
|
||||
|
||||
// Read
|
||||
|
||||
|
||||
Reference in New Issue
Block a user