Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
043bf18d
Commit
043bf18d
authored
Nov 24, 2016
by
Henry Weller
Browse files
functionObjects::grad: Avoid cache conflict with 'postProcess' utility
Resolves bug-report
http://bugs.openfoam.org/view.php?id=2350
parent
0bb9459c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/functionObjects/regionFunctionObject/regionFunctionObjectTemplates.C
View file @
043bf18d
...
...
@@ -59,7 +59,7 @@ bool Foam::functionObjects::regionFunctionObject::store
if
(
cacheable
&&
fieldName
==
tfield
().
name
())
{
WarningInFunction
<<
"Cannot store cache-able field with the name
d
used in the cache."
<<
"Cannot store cache-able field with the name used in the cache."
<<
nl
<<
" Either choose a different name or cache the field"
<<
" and use the 'writeObjects' functionObject."
...
...
src/functionObjects/field/grad/gradTemplates.C
View file @
043bf18d
...
...
@@ -39,7 +39,7 @@ bool Foam::functionObjects::grad::calcGrad()
(
resultName_
,
fvc
::
grad
(
lookupObject
<
VolFieldType
>
(
fieldName_
)),
true
mesh_
.
changing
()
&&
mesh_
.
cache
(
resultName_
)
);
}
else
if
(
foundObject
<
SurfaceFieldType
>
(
fieldName_
))
...
...
@@ -48,7 +48,7 @@ bool Foam::functionObjects::grad::calcGrad()
(
resultName_
,
fvc
::
grad
(
lookupObject
<
SurfaceFieldType
>
(
fieldName_
)),
true
mesh_
.
changing
()
&&
mesh_
.
cache
(
resultName_
)
);
}
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment