From 79e0233c0b1635b9bf00f273ecce26dd900b2056 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:46:59 +0000 Subject: [PATCH 1/2] Initial plan From 9c0d024e6f38aba68da09c8c9a551c7fead715b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 22:49:17 +0000 Subject: [PATCH 2/2] Fix clang build: change constexpr to const for pi = std::acos(-1.0) Co-authored-by: The9Cat <25960766+The9Cat@users.noreply.github.com> --- utils/Test/testDeproject.cc | 2 +- utils/Test/testEmpDeproj.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/Test/testDeproject.cc b/utils/Test/testDeproject.cc index c9ae00e40..8675b9643 100644 --- a/utils/Test/testDeproject.cc +++ b/utils/Test/testDeproject.cc @@ -8,7 +8,7 @@ #include "cxxopts.H" namespace { - constexpr double pi = std::acos(-1.0); + const double pi = std::acos(-1.0); } using namespace Deproject; diff --git a/utils/Test/testEmpDeproj.cc b/utils/Test/testEmpDeproj.cc index 1ae2b0158..a502331ba 100644 --- a/utils/Test/testEmpDeproj.cc +++ b/utils/Test/testEmpDeproj.cc @@ -25,7 +25,7 @@ int main(int argc, char* argv[]) int Nr, Ngrid, NumR, Nint; // Define pi in a portable way instead of relying on non-standard M_PI - constexpr double pi = std::acos(-1.0); + const double pi = std::acos(-1.0); // Parse command-line options //