From dabb6684d3e3ff0c877c494d87cbf47236592fc4 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Mon, 16 Nov 2026 22:14:03 +0100 Subject: [PATCH] Refinement: PI, not M_PI, in the X-ray curvature shells M_PI is not standard C++ and MSVC does not define it, which broke the Windows builds; JFJochMath.h's PI is the same literal, so results do not change. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UqXYdJz9sA2BQBEgKkuVuL --- image_analysis/structure_refinement/Refinement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/image_analysis/structure_refinement/Refinement.cpp b/image_analysis/structure_refinement/Refinement.cpp index ae6ecbac0..2bf5d0840 100644 --- a/image_analysis/structure_refinement/Refinement.cpp +++ b/image_analysis/structure_refinement/Refinement.cpp @@ -646,7 +646,7 @@ struct Context { if (n[k] > 0) { const double s2 = s2_sum[k] / n[k]; if (xyz) - shape[i] += w[k] * f[k] * a.occ * a.occ * std::exp(-a.b_iso * s2 / 2.0) * s2 * (4.0 * M_PI * M_PI / 3.0); + shape[i] += w[k] * f[k] * a.occ * a.occ * std::exp(-a.b_iso * s2 / 2.0) * s2 * (4.0 * PI * PI / 3.0); else shape[i] += w[k] * f[k] * a.occ * a.occ * std::exp(-a.b_iso * s2 / 2.0) * s2 * s2 / 16.0; }