From ba4f18dc78135aedf39c5293b00d51b56903c531 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 14 Aug 2014 06:06:04 -0500 Subject: [PATCH] Return a NaN instead of just a very large value to make the error condition clearer. --- source/grid/tria_accessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.; } } -- 2.39.5