diff --git a/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml b/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml
index 9a0e8d26bf..59c118281f 100644
--- a/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml
+++ b/applications/utilities/postProcessing/graphics/PV3FoamReader/PV3FoamReader/PV3FoamReader_SM.xml
@@ -12,20 +12,22 @@
animateable="0">
- Specifies the filename for the OpenFOAM Reader
+ Specifies the filename for the OpenFOAM Reader.
-
+
- Available timestep values
+ Available timestep values.
+
@@ -190,6 +192,7 @@
+
GetCacheMesh())
+ {
+ delete meshPtr_;
+ meshPtr_ = NULL;
+ }
}
@@ -413,22 +419,25 @@ void Foam::vtkPV3Foam::Update
// Set up mesh parts selection(s)
updateMeshPartsStatus();
+ reader_->UpdateProgress(0.15);
+
// Update the Foam mesh
updateFoamMesh();
- reader_->UpdateProgress(0.2);
+ reader_->UpdateProgress(0.4);
// Convert meshes - start port0 at block=0
int blockNo = 0;
convertMeshVolume(output, blockNo);
convertMeshPatches(output, blockNo);
- reader_->UpdateProgress(0.4);
+ reader_->UpdateProgress(0.6);
if (reader_->GetIncludeZones())
{
convertMeshCellZones(output, blockNo);
convertMeshFaceZones(output, blockNo);
convertMeshPointZones(output, blockNo);
+ reader_->UpdateProgress(0.65);
}
if (reader_->GetIncludeSets())
@@ -436,6 +445,7 @@ void Foam::vtkPV3Foam::Update
convertMeshCellSets(output, blockNo);
convertMeshFaceSets(output, blockNo);
convertMeshPointSets(output, blockNo);
+ reader_->UpdateProgress(0.7);
}
// restart port1 at block=0