From: David Wells Date: Mon, 1 Jul 2024 12:34:41 +0000 (-0400) Subject: JumpFunction: Fix an unset variable warning. X-Git-Tag: v9.6.0-rc1~150^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41afe3e52355b4dedb6a2e9aeff299cc669a62c4;p=dealii.git JumpFunction: Fix an unset variable warning. Not really a bug but my compiler complains about it. --- 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);