]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning in tria_accessor.cc 2441/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 1 Apr 2016 11:55:20 +0000 (13:55 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 1 Apr 2016 12:17:27 +0000 (14:17 +0200)
source/grid/tria_accessor.cc

index 4377710d09f1017f03ba06e9cd6d9d86e76ddffa..456f86a1ee8ffee0c0dd404a23d9504055893927 100644 (file)
@@ -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);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.