From 9444398a57edb0ac5621423f4286eff2fda27f24 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 18 Jan 2017 18:12:05 -0700 Subject: [PATCH] Implement numbers::signaling_nan() also for Point. --- include/deal.II/base/signaling_nan.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/deal.II/base/signaling_nan.h b/include/deal.II/base/signaling_nan.h index 6c9a42354f..5011dd5275 100644 --- a/include/deal.II/base/signaling_nan.h +++ b/include/deal.II/base/signaling_nan.h @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -122,6 +123,27 @@ namespace numbers + /** + * A specialization of the general NaNInitializer class that provides a + * function that returns a Tensor value whose components are + * invalid signaling NaN values. + */ + template + struct NaNInitializer > + { + static Point invalid_element () + { + Point nan_point; + + for (unsigned int i=0; i::invalid_element(); + + return nan_point; + } + }; + + + /** * A specialization of the general NaNInitializer class that provides a * function that returns a SymmetricTensor value whose -- 2.39.5