#2931: Claude AI edits to TwoPuncturesX
| Reporter: | Steven R. Brandt |
| Status: | new |
| Milestone: | |
| Version: | |
| Type: | bug |
| Priority: | major |
| Component: |
Comment (by Zach Etienne):
Here is the report from Codex. It did not have access to Steve's review:
solve_momentum_constraint=yes, but the equation kernels still only populate values[0]. The extra three variables therefore have no equations, and the resulting nonlinear system is mathematically ill-posed.TwoPuncturesX/src/TwoPunctures.cc:40-41, 302-306
TwoPuncturesX/src/Equations.cc:158-181values[0] = U.d11[0] + U.d22[0] + U.d33[0] + 0.125 * BY_KKofxyz(x, y, z) / psi7 + 2.0 * Pi / psi2 / psi * rho_adm;
values[0] = dU.d11[0] + dU.d22[0] + dU.d33[0] - 0.875 * BY_KKofxyz(x, y, z) / psi8 * dU.d0[0];
SpecCoef(n1, n2, n3, 0, v.d0, cf_v.d0); - Fixed code snippet. if (solve_momentum_constraint) { CCTK_ERROR("solve_momentum_constraint=yes is not implemented in TwoPuncturesX"); }
/ Longer-term fix: implement and fill values[0..3] consistently, and generate/store spectral coefficients for all solved variables. / - Confidence 99%
rescale_sources=yes triggers an unconditional assert(0), so the source-enabled branch cannot run successfully.TwoPuncturesX/src/TwoPunctures.cc:626-630
TwoPuncturesX/param.ccl:162-164--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2931/claude-ai-edits-to-twopuncturesx