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
417a2f6a
Commit
417a2f6a
authored
May 24, 2018
by
mattijs
Browse files
BUG: reference FO: allocate interpolator on all processors. Fixes
#823
.
parent
cb1cd96b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/functionObjects/field/reference/referenceTemplates.C
View file @
417a2f6a
...
...
@@ -53,13 +53,15 @@ bool Foam::functionObjects::reference::calcType()
{
cellValue
.
value
()
=
-
pTraits
<
Type
>::
one
*
GREAT
;
// Might trigger parallel comms (e.g. volPointInterpolation, if
// result is not yet cached) so have all processors do it
autoPtr
<
interpolation
<
Type
>>
interpolator
(
interpolation
<
Type
>::
New
(
interpolationScheme_
,
vf
)
);
if
(
celli_
!=
-
1
)
{
autoPtr
<
interpolation
<
Type
>>
interpolator
(
interpolation
<
Type
>::
New
(
interpolationScheme_
,
vf
)
);
cellValue
.
value
()
=
interpolator
().
interpolate
(
position_
,
celli_
,
-
1
);
}
...
...
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