Skip to content
Snippets Groups Projects
Commit 5c3660cc authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Throw an exception instead of returning an invalid value

If the code path should never be reached, having an exception thrown
makes it easier to nitce it was reached after all.
parent df158e3d
No related branches found
No related tags found
1 merge request!150UGGrid: append to-be-visited sons at the end of the list
......@@ -633,7 +633,7 @@ int Dune::UGGridLeafIntersection<GridImp>::getFatherSide(const Face& currentFace
}
// Should never happen
return -1;
DUNE_THROW(GridError, "Reached code path that should never be reached");
}
template< class GridImp>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment