-
Notifications
You must be signed in to change notification settings - Fork 249
[WIP] Implement weighted BFBT with different discretization for (BC^{-1}B^T). #6440
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
base: main
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.
So when you do this, what happens?
source/simulator/solver.cc
Outdated
}; | ||
template<typename Range, | ||
typename Domain, | ||
typename Payload> | ||
LinearOperator<Range, Domain, Payload> diag_operator(LinearOperator<Range,Domain,Payload> &exemplar, const TrilinosWrappers::MPI::Vector &diagonal) |
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.
Add 3 empty lines and then also add documentation for this function.
source/simulator/solver.cc
Outdated
solver.solve(mp_matrix, | ||
solver.solve(matrix, |
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.
Do you even still need mp_matrix
in that case?
I have tried address the changes above (except removing the mp_matrix - will get to it). Probably not clear from the rebase, sorry. Do not review quite yet. |
} | ||
|
||
|
||
|
||
|
||
/** |
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.
We typically have 3 empty lines between top-level constructs. So take one off again here.
/** | ||
* Given a diagonal matrix stored as a vector, | ||
* create an operator that represents its action. | ||
*/ | ||
|
||
template<typename Range, |
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.
/** | |
* Given a diagonal matrix stored as a vector, | |
* create an operator that represents its action. | |
*/ | |
template<typename Range, | |
/** | |
* Given a diagonal matrix stored as a vector, | |
* create an operator that represents its action. | |
*/ | |
template<typename Range, |
This implementation applies (BC^{-1}B^T)^{-1}) by creating an operator that applies B^T, followed by C^{-1},
followed by B, then doing a CG solve with this new operator.
@tjhei