mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Error checking for number of blocks.
This commit is contained in:
parent
f60f437000
commit
2a6220726d
@ -33,7 +33,6 @@ vtkm::cont::PartitionedDataSet VTKVisItFileReader::ReadPartitionedDataSet()
|
||||
{
|
||||
//Get the base path of the input file.
|
||||
std::string baseDirPath = ".";
|
||||
baseDirPath = "../vtk-m/data/data/uniform";
|
||||
|
||||
//Get the base dir name
|
||||
auto pos = this->FileName.rfind("/");
|
||||
@ -79,6 +78,9 @@ vtkm::cont::PartitionedDataSet VTKVisItFileReader::ReadPartitionedDataSet()
|
||||
}
|
||||
}
|
||||
|
||||
if (static_cast<std::size_t>(numBlocks) != fileNames.size())
|
||||
throw vtkm::io::ErrorIO("Wrong number of partitions in VisIt file: " + this->FileName);
|
||||
|
||||
vtkm::cont::PartitionedDataSet pds;
|
||||
|
||||
//Read all the files.
|
||||
|
Loading…
Reference in New Issue
Block a user