- // Copy the GAUSS_DATA info key for the last reader
- vtkInformation* mInfo = this->Reader->GetOutputInformation(0);
- if (mInfo->Has(vtkMEDReader::GAUSS_DATA()))
- {
- info->CopyEntry(mInfo, vtkMEDReader::GAUSS_DATA());
+ // Configure the localReader for usage with the files
+ localReader->SetFileName(this->GetFileName(i + offFile));
+ localReader->SetDistributeWithMPI(false);
+ localReader->UpdateInformation();
+ localReader->UpdateTimeStep(time);
+
+ vtkDataObject* outputReader = vtkMultiBlockDataSet::SafeDownCast(localReader->GetOutputDataObject(0))->GetBlock(0);
+ output->SetBlock(i + offFile, outputReader);
+
+ if (i == 0)
+ {
+ // Copy the GAUSS_DATA info key of the first filename
+ vtkInformation* mInfo = localReader->GetOutputInformation(0);
+ if (mInfo->Has(vtkMEDReader::GAUSS_DATA()))
+ {
+ info->CopyEntry(mInfo, vtkMEDReader::GAUSS_DATA());
+ }
+ }