Skip to content
Snippets Groups Projects
Commit 84d5a88f authored by Dan Lipsa's avatar Dan Lipsa
Browse files

Insure right file is open.

vtkFileSeriesReader does not call RequestDataObject for every time
step.
parent 7ba8d25f
No related branches found
No related tags found
No related merge requests found
Pipeline #233495 running
......@@ -277,6 +277,17 @@ int vtkHDFReader::RequestDataObject(vtkInformation*, vtkInformationVector** vtkN
int vtkHDFReader::RequestInformation(vtkInformation* vtkNotUsed(request),
vtkInformationVector** vtkNotUsed(inputVector), vtkInformationVector* outputVector)
{
if (!this->FileName)
{
vtkErrorMacro("Requires valid input file name");
return 0;
}
// Insures a new file is open. This happen for vtkFileSeriesReader
// which does not call RequestDataObject for every time step.
if (!this->Impl->Open(this->FileName))
{
return 0;
}
vtkInformation* outInfo = outputVector->GetInformationObject(0);
if (!outInfo)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment