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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UqXYdJz9sA2BQBEgKkuVuL
This commit is contained in:
1 parent
756f7d4e9c
commit
dabb6684d3
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user