Open Steven-Roberts opened 2 months ago
In preparation of #587 being merged, I'm wondering how to best count RHS evals. Currently, it can't be accessed through the
SUNStepper
API, and for some implementations, e.g., exact solution, no RHS may even be used. I see two options:
- Add new
SUNStepper_SetGetNumRhsEvalsFn
andSUNStepper_GetNumRhsEvals
functions and use these inARKodeGetNumRhsEvals
- Have
ARKodeGetNumRhsEvals
return an error or 0 evals.I suppose I favor the first option. Anyone else have ideas or preferences?
I think that you could leave it out entirely, and ARKODE will then return an error that the function is unsupported. If a user creates the SUNStepper components out of SUNDIALS integrators, then they can get the number of RHS evaluations for each component through those directly, and if they provide their own SUNStepper, then they can query that if they want to know what happened internally.
I think that you could leave it out entirely, and ARKODE will then return an error that the function is unsupported.
Ok, that sounds reasonable. On further consideration, my original idea of getting RHS evals from the SUNStepper becomes very complicated if nested partitioning is used. Probably best to avoid that.
LGTM. Ill leave it to others to chime in on anything else.
In preparation of #587 being merged, I'm wondering how to best count RHS evals. Currently, it can't be accessed through the
SUNStepper
API, and for some implementations, e.g., exact solution, no RHS may even be used. I see two options:SUNStepper_SetGetNumRhsEvalsFn
andSUNStepper_GetNumRhsEvals
functions and use these inARKodeGetNumRhsEvals
ARKodeGetNumRhsEvals
return an error or 0 evals.I suppose I favor the first option. Anyone else have ideas or preferences?