contourtree_augmented doesn't call abort in VTK-m worklets

This commit is contained in:
Robert Maynard 2019-04-12 13:25:06 -04:00
parent 3fc0f11df3
commit e54cbe85a8
2 changed files with 4 additions and 3 deletions

@ -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