-
Notifications
You must be signed in to change notification settings - Fork 238
Add ParCSR overlap capabilities #1448
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: master
Are you sure you want to change the base?
Conversation
src/parcsr_mv/par_csr_overlap.c
Outdated
| *--------------------------------------------------------------------------*/ | ||
|
|
||
| HYPRE_Int | ||
| hypre_ParCSRMatrixExtractLocalOverlap(hypre_ParCSRMatrix *A, |
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.
Consider hypre_ParCSRMatrixCreateLocalOverlap
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.
Changed to hypre_ParCSRMatrixCreateExtendedMatrix
|
@liruipeng @rfalgout I'm refactoring the test driver that I added and will open a separate PR for it. This PR is ready for review when you have time. Thanks! |
rfalgout
left a comment
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.
This looks good to me, Victor. Thanks!
This PR implements the core infrastructure for computing overlapping subdomains in ParCSR matrices. This is the first step towards implementing overlapping Schwarz preconditioners in hypre.
Main changes are given below:
par_csr_overlap.h: Defines thehypre_OverlapDatastructure and associated accessor macros to store extended subdomain information.par_csr_overlap.c: Implements the overlap computation logic, including:hypre_OverlapDataCreateandhypre_OverlapDataDestroy.hypre_ParCSRMatrixComputeOverlap: Determines extended row indices for a given overlap order.hypre_ParCSRMatrixGetExtendedRows: Handles MPI communication to retrieve external matrix rows.hypre_ParCSRMatrixBuildExtendedMatrix: Constructs the local extended matrix.src/parcsr_mv/CMakeLists.txt: Added new source files to the build system.src/parcsr_mv/protos.h: Added prototypes for the new functions.src/parcsr_mv/par_csr_matrix.c: Minor cleanup in error handling logic.TODOs
test_csr_overlap.c)