Commit e54cbe85 authored by Robert Maynard's avatar Robert Maynard
Browse files

contourtree_augmented doesn't call abort in VTK-m worklets

parent 3fc0f11d
...@@ -142,7 +142,8 @@ public: ...@@ -142,7 +142,8 @@ public:
return vertex - this->nCols; return vertex - this->nCols;
//break; // row - 1, col //break; // row - 1, col
default: default:
abort(); // TODO How to generate a meaningful error message from a device (in particular when using CUDA?) VTKM_ASSERT(false);
return vertex;
} }
} // GetNeighbourIndex } // GetNeighbourIndex
......
...@@ -211,8 +211,8 @@ public: ...@@ -211,8 +211,8 @@ public:
case 25: case 25:
return vertex + (this->nRows * this->nCols) + this->nCols + 1; // { 1, 1, 1 } return vertex + (this->nRows * this->nCols) + this->nCols + 1; // { 1, 1, 1 }
default: default:
abort(); // TODO How to generate a meaningful error message from a device (in particular when using CUDA?) VTKM_ASSERT(false);
//default: std::cerr << "Internal error!"; abort(); return vertex;
} }
} // GetNeighbourIndex } // GetNeighbourIndex
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment