Commit b307d528 authored by henry's avatar henry
Browse files

PV3FoamReader: Use the vol-field name rather than...

PV3FoamReader: Use the vol-field name rather than volPointInterpolate<vol-field name> for the VTK point fields
parent 17bdc842
......@@ -192,7 +192,10 @@ void Foam::vtkPV3Foam::convertPointField
pointData->SetNumberOfTuples(nPoints + addPointCellLabels.size());
pointData->SetNumberOfComponents(nComp);
pointData->Allocate(nComp*(nPoints + addPointCellLabels.size()));
pointData->SetName(ptf.name().c_str());
// Note: using the name of the original volField
// not the name generated by the interpolation "volPointInterpolate(<name>)"
pointData->SetName(tf.name().c_str());
if (debug)
{
......
......@@ -110,12 +110,6 @@ void Foam::vtkPV3Foam::convertVolFields
//
// 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
(
int partId = arrayRangePatches_.start();
......@@ -162,7 +156,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField
(
pointFldName,
tf.name(),
ppInterpList[patchId].faceToPointInterpolate(tpptf)(),
output,
arrayRangePatches_,
......@@ -182,7 +176,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField
(
pointFldName,
tf.name(),
ppInterpList[patchId].faceToPointInterpolate(ptf)(),
output,
arrayRangePatches_,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment