Skip to content
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

GMRES Tutorial #143

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

GMRES Tutorial #143

wants to merge 11 commits into from

Conversation

ajnonaka
Copy link
Contributor

Simple driver and class for unpreconditioned GMRES for Poisson equation.

@ajnonaka
Copy link
Contributor Author

I think I need to change the initial condition to be random (and sum to zero) - it's converging too easily with sin(2 pi x) on the RHS.

* as the preconditioner.
*
*/
template <typename MF>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a tutorial, it might be better to make this a non-template concrete class. We can put most of the function definitions in a cpp file.

m_gmres.solve(a_sol, a_rhs, a_tol_rel, a_tol_abs);
}

using GMRESPOISSON = GMRESPOISSONT<MultiFab>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we make this non-template, we can remove this.

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

Successfully merging this pull request may close these issues.

2 participants