Distinguish strategy failures and expose the actual trial tangent

This commit is contained in:
2026-09-17 10:09:22 -04:00
parent 5f3eb0b18c
commit 2e31917269
6 changed files with 152 additions and 13 deletions

View File

@@ -265,6 +265,9 @@ export namespace mean_field::solver::nonlinear {
std::span<const mfem::real_t> candidatePhysicalState{};
std::span<const mfem::real_t> candidateNormalizedState{};
std::span<const mfem::real_t> candidateNormalizedResidual{};
// A curved trial path cannot recover its Newton tangent by dividing
// the candidate displacement by alpha. Observers borrow it directly.
std::span<const mfem::real_t> normalizedDirection{};
};
struct AfterIteration final {