Skip to content

Specify solution and store residual on particles #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
kuberry opened this issue Apr 6, 2020 · 0 comments
Closed

Specify solution and store residual on particles #178

kuberry opened this issue Apr 6, 2020 · 0 comments
Labels

Comments

@kuberry
Copy link
Collaborator

kuberry commented Apr 6, 2020

The current ProblemsT class has a solve() function that permits a flag to enable saving the residual to the particles (overwriting the solution) rather than storing the solution.
The process is: 1.) provide A and b, then solve Ax=b 2.) compute r=Ax-b 3.) Store r as the solution fields on the particles.

For the purposes of visual debugging, it would also be useful to specify an exact solution (i.e. x), and then rather than solving Ax=b, just compute r=Ax-b and store this on the particles.

Propose naming the function residual(optional string postfix)
It could also replace the the residual writing currently in solve().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant