Add a getter for the preconditioned initial residual from iterative solvers.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 84
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
Summary
Add a function to get the preconditioned initial residual from the iterative solvers in ReSolve.
Rationale
When using an iterative linear solver in SUNDIALS with the IDA solver, a function that returns the initial preconditioned residual $P^{-1}(b-Ax)$ is required.
Description
A getter for the initial residual vector in either SystemSolver or the iterative linear solver classes themselves.
Alternatively, this could be calculated in SUNDIALS, but it would require a Matvec operation.
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating SystemSolver and the iterative solver classes mentioned in the issue, then inspect how the initial preconditioned residual is computed and stored. Determine which API should expose P^{-1}(b-Ax) to SUNDIALS without requiring an additional Matvec; done means the residual vector is accessible through a clear getter in the selected solver interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- hpc
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100