mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
contourtree_augmented doesn't call abort in VTK-m worklets
This commit is contained in:
parent
3fc0f11df3
commit
e54cbe85a8
@ -142,7 +142,8 @@ public:
|
||||
return vertex - this->nCols;
|
||||
//break; // row - 1, col
|
||||
default:
|
||||
abort(); // TODO How to generate a meaningful error message from a device (in particular when using CUDA?)
|
||||
VTKM_ASSERT(false);
|
||||
return vertex;
|
||||
}
|
||||
} // GetNeighbourIndex
|
||||
|
||||
|
@ -211,8 +211,8 @@ public:
|
||||
case 25:
|
||||
return vertex + (this->nRows * this->nCols) + this->nCols + 1; // { 1, 1, 1 }
|
||||
default:
|
||||
abort(); // TODO How to generate a meaningful error message from a device (in particular when using CUDA?)
|
||||
//default: std::cerr << "Internal error!"; abort();
|
||||
VTKM_ASSERT(false);
|
||||
return vertex;
|
||||
}
|
||||
} // GetNeighbourIndex
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user