Skip to content

User-callable routine to retrieve the current stage index#819

Open
drreynolds wants to merge 63 commits intofeature/fes-preallocatefrom
feature/fes-get-stage-index
Open

User-callable routine to retrieve the current stage index#819
drreynolds wants to merge 63 commits intofeature/fes-preallocatefrom
feature/fes-get-stage-index

Conversation

@drreynolds
Copy link
Collaborator

@drreynolds drreynolds commented Jan 20, 2026

This PR adds the function ARKodeGetStageIndex that returns the index of the stage currently being processed, and the total number of stages in the method, for users who must compute auxiliary quantities in their IVP right-hand side functions during some stages and not others (e.g., in all but the first or last stage). It also adds functions to retrieve the last saved state (yn) and the corresponding time (tn).

@drreynolds
Copy link
Collaborator Author

This is the sixth (and last) in a sequence of PRs for ARKODE to support our FES collaborators. Please review this one after #818. When the stack is complete, we'll do a final PR into develop

@gardner48 gardner48 added this to the SUNDIALS Next milestone Jan 20, 2026
@manauref
Copy link

A data point: I've tested this in combination with

ARKodeSetPreprocessRHSFn
ARKodeSetPostprocessStageFn
ARKodeSetPostprocessStepFailFn

in Gkeyll and it seems to work fine.

… otherwise imex-mri-gark methods would not be tested
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants