Commit e54cbe85 authored by Robert Maynard's avatar Robert Maynard

contourtree_augmented doesn't call abort in VTK-m worklets

parent 3fc0f11d
......@@ -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
......
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