diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H index a09911063a200c0d9136a036e2441523a4bf196d..96c7e1ec35b1ddeef6ef9493138a21ab36b87c96 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertPointFields.H @@ -118,7 +118,7 @@ void Foam::vtkPV3Foam::convertPointFields { convertPatchPointField ( - ptf.name(), + fieldName, ptf.boundaryField()[patchI] .patchInternalField()(), output, @@ -154,7 +154,7 @@ void Foam::vtkPV3Foam::convertPointField pointData->SetNumberOfTuples(ptf.size() + addPointCellLabels_.size()); pointData->SetNumberOfComponents(Type::nComponents); pointData->Allocate(Type::nComponents*ptf.size()); - pointData->SetName(ptf.name().c_str()); + pointData->SetName(tf.name().c_str()); float vec[Type::nComponents]; @@ -223,7 +223,7 @@ void Foam::vtkPV3Foam::convertPointField pointData->SetNumberOfTuples(psf.size() + addPointCellLabels_.size()); pointData->SetNumberOfComponents(1); pointData->Allocate(psf.size()); - pointData->SetName(psf.name().c_str()); + pointData->SetName(sf.name().c_str()); for (int i=0; i<psf.size(); i++) { diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H index ee737e6a880aca298804a451a4a7151ad95b2790..8a5905d2e0e7c7ed4a888f363542ed53af5b9b9d 100644 --- a/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H +++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/vtkPV3Foam/vtkPV3FoamConvertVolFields.H @@ -118,7 +118,8 @@ void Foam::vtkPV3Foam::convertVolFields ); convertPointField ( - tptf(), tf, + tptf(), + tf, output, selectInfoVolume_, selectedRegionDatasetIds_[regionId] @@ -193,7 +194,7 @@ void Foam::vtkPV3Foam::convertVolFields convertPatchPointField ( - tptf().name(), + tf.name(), tptf().boundaryField()[patchId] .patchInternalField()(), output,