mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Reverse error check in ContourTreeMaker
This commit is contained in:
parent
5005b5d44a
commit
cea1173233
@ -218,14 +218,6 @@ inline void ContourTreeMaker::ComputeHyperAndSuperStructure()
|
||||
CompressActiveSupernodes();
|
||||
this->ContourTreeResult.NumIterations++;
|
||||
|
||||
if (this->ContourTreeResult.NumIterations >
|
||||
this->ContourTreeResult.Supernodes.GetNumberOfValues())
|
||||
{
|
||||
throw vtkm::cont::ErrorBadValue(
|
||||
std::string("Number of iterations in contour tree exceeds number of supernodes likely due "
|
||||
"to bad input mesh: nSupernodes=") +
|
||||
std::to_string(this->ContourTreeResult.Supernodes.GetNumberOfValues()));
|
||||
}
|
||||
} // loop until no active vertices remaining
|
||||
|
||||
// test for final edges meeting
|
||||
|
Loading…
Reference in New Issue
Block a user