Skip to content
Snippets Groups Projects
Commit e3b5d373 authored by Mark Olesen's avatar Mark Olesen
Browse files

PV3FoamReader bugfix - interpolated point fields had wrong names on the patches

parent 08b74f50
Branches
Tags
No related merge requests found
...@@ -109,6 +109,13 @@ void Foam::vtkPV3Foam::convertVolFields ...@@ -109,6 +109,13 @@ void Foam::vtkPV3Foam::convertVolFields
// //
// Convert patches - if activated // Convert patches - if activated
// //
// the name for the interpolated patch point field must be consistent
// with the interpolated volume point field
// this could be done better
const word pointFldName = "volPointInterpolate(" + tf.name() + ')';
for for
( (
int partId = partInfoPatches_.start(); int partId = partInfoPatches_.start();
...@@ -155,7 +162,7 @@ void Foam::vtkPV3Foam::convertVolFields ...@@ -155,7 +162,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField convertPatchPointField
( (
tf.name(), pointFldName,
ppInterpList[patchId].faceToPointInterpolate(tpptf)(), ppInterpList[patchId].faceToPointInterpolate(tpptf)(),
output, output,
partInfoPatches_, partInfoPatches_,
...@@ -175,7 +182,7 @@ void Foam::vtkPV3Foam::convertVolFields ...@@ -175,7 +182,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField convertPatchPointField
( (
tf.name(), pointFldName,
ppInterpList[patchId].faceToPointInterpolate(ptf)(), ppInterpList[patchId].faceToPointInterpolate(ptf)(),
output, output,
partInfoPatches_, partInfoPatches_,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment