using fieldname as label for point field data instead of volPointInterpolate(X)

This commit is contained in:
andy
2009-07-17 18:06:33 +01:00
parent 99e5ef490f
commit e5c36daef8

View File

@ -132,7 +132,6 @@ void Foam::vtkPV3Foam::convertPointFields
} }
template<class Type> template<class Type>
void Foam::vtkPV3Foam::convertPointFieldBlock void Foam::vtkPV3Foam::convertPointFieldBlock
( (
@ -162,7 +161,6 @@ void Foam::vtkPV3Foam::convertPointFieldBlock
} }
template<class Type> template<class Type>
void Foam::vtkPV3Foam::convertPointField void Foam::vtkPV3Foam::convertPointField
( (
@ -193,7 +191,7 @@ void Foam::vtkPV3Foam::convertPointField
pointData->SetNumberOfTuples(nPoints + addPointCellLabels.size()); pointData->SetNumberOfTuples(nPoints + addPointCellLabels.size());
pointData->SetNumberOfComponents(nComp); pointData->SetNumberOfComponents(nComp);
pointData->Allocate(nComp*(nPoints + addPointCellLabels.size())); pointData->Allocate(nComp*(nPoints + addPointCellLabels.size()));
pointData->SetName(ptf.name().c_str()); pointData->SetName(tf.name().c_str());
if (debug) if (debug)
{ {
@ -269,6 +267,7 @@ void Foam::vtkPV3Foam::convertPointField
pointData->Delete(); pointData->Delete();
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif #endif