Repository navigation
Fix FSAL out-of-place controlled stepping - #110
Open
trestoncuzzort wants to merge 1 commit into
Open
trestoncuzzort wants to merge 1 commit into
trestoncuzzort wants to merge 1 commit into
Conversation
Keep the proposed derivative separate during error checking and rejected attempts. Update the cached derivative only after an accepted step. Fixes boostorg#72. Generated-by: Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The FSAL overload
try_step(system, in, t, out, dt)does not compile: it forwards six arguments to an overload that needs seven.Use the existing, resized proposal-derivative buffer and copy it into the cached derivative after an accepted step. The error checker sees the derivative at the start of the attempt, and rejected attempts retain that derivative for a retry. The proposed output state remains available after an error rejection.
The new regression covers array/vector states, accepted and rejected attempts, retries, both time directions, reset, explicit initialization, copying, dynamic resizing, and rejection by the maximum-step limit. It checks derivative values and RHS call counts against the existing explicit-derivative API. A one-line fix that aliases input and output derivatives compiles but fails 260 regression checks.
Validation:
The broader explicit Valgrind baseline reports pre-existing findings in eight GCC programs and eleven Clang programs. All 124 pre-existing test executables are byte-for-byte identical after this patch; the two new regression binaries were checked separately.
Fixes #72.