From 41afe3e52355b4dedb6a2e9aeff299cc669a62c4 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 1 Jul 2024 08:34:41 -0400 Subject: [PATCH] JumpFunction: Fix an unset variable warning. Not really a bug but my compiler complains about it. --- source/base/function_lib.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/base/function_lib.cc b/source/base/function_lib.cc index 3fbe3e185f..bf1dad3ccd 100644 --- a/source/base/function_lib.cc +++ b/source/base/function_lib.cc @@ -1811,7 +1811,8 @@ namespace Functions case 2: angle = std::atan2(direction[0], direction[1]); break; - case 3: + default: + angle = std::numeric_limits::signaling_NaN(); DEAL_II_NOT_IMPLEMENTED(); } sine = std::sin(angle); -- 2.39.5