mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects::grad: Avoid cache conflict with 'postProcess' utility
Resolves bug-report http://bugs.openfoam.org/view.php?id=2350
This commit is contained in:
@ -59,7 +59,7 @@ bool Foam::functionObjects::regionFunctionObject::store
|
|||||||
if (cacheable && fieldName == tfield().name())
|
if (cacheable && fieldName == tfield().name())
|
||||||
{
|
{
|
||||||
WarningInFunction
|
WarningInFunction
|
||||||
<< "Cannot store cache-able field with the named used in the cache."
|
<< "Cannot store cache-able field with the name used in the cache."
|
||||||
<< nl
|
<< nl
|
||||||
<< " Either choose a different name or cache the field"
|
<< " Either choose a different name or cache the field"
|
||||||
<< " and use the 'writeObjects' functionObject."
|
<< " and use the 'writeObjects' functionObject."
|
||||||
|
|||||||
@ -39,7 +39,7 @@ bool Foam::functionObjects::grad::calcGrad()
|
|||||||
(
|
(
|
||||||
resultName_,
|
resultName_,
|
||||||
fvc::grad(lookupObject<VolFieldType>(fieldName_)),
|
fvc::grad(lookupObject<VolFieldType>(fieldName_)),
|
||||||
true
|
mesh_.changing() && mesh_.cache(resultName_)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else if (foundObject<SurfaceFieldType>(fieldName_))
|
else if (foundObject<SurfaceFieldType>(fieldName_))
|
||||||
@ -48,7 +48,7 @@ bool Foam::functionObjects::grad::calcGrad()
|
|||||||
(
|
(
|
||||||
resultName_,
|
resultName_,
|
||||||
fvc::grad(lookupObject<SurfaceFieldType>(fieldName_)),
|
fvc::grad(lookupObject<SurfaceFieldType>(fieldName_)),
|
||||||
true
|
mesh_.changing() && mesh_.cache(resultName_)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user