]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return a NaN instead of just a very large value to make the error condition 83/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 14 Aug 2014 11:06:04 +0000 (06:06 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 14 Aug 2014 11:06:04 +0000 (06:06 -0500)
clearer.

source/grid/tria_accessor.cc

index 6cea86cb861ae6f23638ac854dae68976b4c3f17..c9f4cb2455a7c3a1476519e524d0361dca33a4a6 100644 (file)
@@ -978,7 +978,7 @@ namespace
     // catch-all for all cases not explicitly
     // listed above
     Assert (false, ExcNotImplemented());
-    return -1e10;
+    return 1./0.;
   }
 }
 

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.