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
Add hypre_MGRSetGlobalSmootherAtLevel
to MGR
#1091
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@victorapm this looks good to me, if it has been tested to work. It will be good to have a regression test to cover this case and make sure things are being destroyed correctly. I am fine with it if that is done in a separate PR. Thanks!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
src/parcsr_ls/HYPRE_parcsr_ls.h
Outdated
* @note Unlike some other setup functions that might require an array to set options across multiple | ||
* levels, this function focuses on a single level, identified by the \e level parameter. | ||
* | ||
* @warning If `hypre_MGRSetLevelSmoothType` has previously been called, setting a global smoother at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should rephrase this statement to say that this call takes precedence for setting the smoother at that level or overrides all other options for the smoother at that level (irrespective of when they are called).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! Do you want to make the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@victorapm, I made a few comments for your review. Otherwise, the overall idea looks good to me. Thanks.
Add
hypre_MGRSetGlobalSmootherAtLevel
which allows users to set "external" hypre solvers as a global relaxation method in MGR