-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Upgrade PartitionedArrays from 0.3.x to 0.5.x #18
Conversation
a3cd4c9
to
5bc2746
Compare
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.
Also wanted to ask if using .row_partition
and .col_partition
like in
Line 516 in 5bc2746
map(local_values(B), B.row_partition, B.col_partition) do Bv, Br, Bc |
|
||
# Extract sparse matrices from the SplitMatrix. We are only interested in the owned | ||
# rows, so only consider own-own and own-ghost blocks. | ||
Aoo = A.blocks.own_own::SparseMatrixCSC |
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.
@fverdugo is using A.block.own_own
the correct way or is there some function to extract this part? I saw https://github.com/fverdugo/PartitionedArrays.jl/blob/b211949cc5842f3d6d99f8452b9f0233aef963a5/src/p_sparse_matrix.jl#L670-L672 but not sure what to pass as the second and third argument (although they are unused so doesn't matter...)
https://github.com/fverdugo/PartitionedArrays.jl/blob/b211949cc5842f3d6d99f8452b9f0233aef963a5/src/p_sparse_matrix.jl#L993 looks close. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #18 +/- ##
==========================================
- Coverage 77.69% 76.78% -0.92%
==========================================
Files 4 4
Lines 1139 1163 +24
==========================================
+ Hits 885 893 +8
- Misses 254 270 +16 ☔ View full report in Codecov by Sentry. |
15a0994
to
08d52f4
Compare
This patch upgrades the PartitionedArrays dependency from the 0.3.x release series to 0.5.x (closes #17). Also updates documentation build dependencies.
08d52f4
to
01e91b1
Compare
Nice to see this merged so quickly!
These fields are documented (thus public), but I always use NB. AFAIK, Petsc (and provably Hypre) assumes that the global row ids are partitioned using a "block" partition (consecutive rows go to the same rank) and blocks are mapped to ranks in ascending rank id. Moreover ghost columns are sorted according to global id. None of these restrictions apply to PAs, which makes challenging to convert a PSparseMatrix to a Petsc matrix since you need to reformat data to match Petsc assumptions. Take a look to this function to check how I am building a Petsc matrix from a PSparseMatrix: You provably need to do something similar (unless you are already doing it) so that HYPRE.jl is able to work with any PSparseMatrix. |
Yea, right now I am just throwing an error instead ( HYPRE.jl/ext/HYPREPartitionedArrays.jl Line 36 in 10bdaec
|
No description provided.