Commit 3df4ab6a authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot

Merge topic 'GetNeighbourIndex_doesnt_call_abort'

e54cbe85 contourtree_augmented doesn't call abort in VTK-m worklets
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1642
parents 3fc0f11d e54cbe85
......@@ -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