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
TrilinosWrappers::SolverDirect: adjust interface #16727
Conversation
/** | ||
* Constructor. Creates the solver without solver control object. | ||
*/ | ||
SolverDirect(const AdditionalData &data = AdditionalData()); |
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.
SolverDirect(const AdditionalData &data = AdditionalData()); | |
explicit SolverDirect(const AdditionalData &data = AdditionalData()); |
* factorization for it with the package chosen from the additional | ||
* data structure. Note that there is no need for a preconditioner | ||
* here and solve() is not 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.
@p data replaces the data stored in this instance.
@@ -559,6 +573,23 @@ namespace TrilinosWrappers | |||
solve(dealii::LinearAlgebra::distributed::Vector<double> &x, | |||
const dealii::LinearAlgebra::distributed::Vector<double> &b); | |||
|
|||
/** | |||
* Solve the linear system <tt>Ax=b</tt> based on the | |||
* package set in initialize(). Note the matrix is not refactorized during |
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.
or in the constructor, right?
Are you deriving from If that doesn't work, why don't you store these objects via |
0ec2269
to
5e75dc7
Compare
@tjhei I have addressed the comments.
@bangerth No. The multigrid classes store |
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 to me apart from a minor typo.
5e75dc7
to
1f07687
Compare
... to be able to switch between
TrilinosWrappers::PreconditionILU
,TrilinosWrappers::PreconditionAMG
,TrilinosWrappers::SolverDirect
.The changes are:
Subscriptor
initialize()
anAdditionalData
objectvmult
functionsSolverControl
optional