From a12b0f613562b446efed8bfceba34e5cf648e8dd Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 1 Apr 2016 13:55:20 +0200 Subject: [PATCH] Fix warning in tria_accessor.cc --- source/grid/tria_accessor.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 4377710d09..456f86a1ee 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -1943,7 +1943,9 @@ neighbor_or_periodic_neighbor (const unsigned int i_face) const else if (this->has_periodic_neighbor(i_face)) return this->periodic_neighbor(i_face); else - Assert (false, TriaAccessorExceptions::ExcNoPeriodicNeighbor()); + AssertThrow (false, TriaAccessorExceptions::ExcNoPeriodicNeighbor()); + // we can't come here + return this->neighbor(i_face); } -- 2.39.5