Commit f411ac68 authored by mattijs's avatar mattijs
Browse files

patchnames on uncached meshes

parent 7e735715
......@@ -319,6 +319,7 @@ int vtkPV3FoamReader::RequestData
<< output->GetNumberOfBlocks() << " blocks\n";
}
#ifdef EXPERIMENTAL_TIME_CACHING
bool needsUpdate = false;
......@@ -373,6 +374,9 @@ int vtkPV3FoamReader::RequestData
#endif
// Do any cleanup on the Foam side
foamData_->CleanUp();
return 1;
}
......
......@@ -492,11 +492,15 @@ void Foam::vtkPV3Foam::Update
convertLagrangianFields(lagrangianOutput);
reader_->UpdateProgress(0.95);
meshChanged_ = fieldsChanged_ = false;
}
void Foam::vtkPV3Foam::CleanUp()
{
// reclaim some memory
reduceMemory();
reader_->UpdateProgress(1.0);
meshChanged_ = fieldsChanged_ = false;
}
......
......@@ -700,6 +700,9 @@ public:
vtkMultiBlockDataSet* lagrangianOutput
);
//- Clean any storage
void CleanUp();
//- Allocate and return a list of selected times
// returns the count via the parameter
double* findTimes(int& nTimeSteps);
......
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