From: Wolfgang Bangerth Date: Thu, 14 Aug 2014 11:06:04 +0000 (-0500) Subject: Return a NaN instead of just a very large value to make the error condition X-Git-Tag: v8.2.0-rc1~204^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F83%2Fhead;p=dealii.git Return a NaN instead of just a very large value to make the error condition clearer. --- diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 6cea86cb86..c9f4cb2455 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -978,7 +978,7 @@ namespace // catch-all for all cases not explicitly // listed above Assert (false, ExcNotImplemented()); - return -1e10; + return 1./0.; } }