Add assembly into rectangular sparse matrices#1279
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1279 +/- ##
==========================================
- Coverage 94.23% 94.13% -0.11%
==========================================
Files 40 40
Lines 6751 6766 +15
==========================================
+ Hits 6362 6369 +7
- Misses 389 397 +8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3b2170f to
c44f6bb
Compare
c44f6bb to
e8e8be6
Compare
KnutAM
left a comment
There was a problem hiding this comment.
Just some minor comments regarding docs and tests, but looks good to me.
Could you post a benchmark in the PR comparing master and PR for assembling a constant Ke and fe with some grid, just so we document that there are no performance regressions (I assume there isn't?)
|
Another question, what about And side-note, but |
Potentially, yes, but right now I do not have a real use-case for it and also cannot think about one. So it could become a good first issue.
This looks correct to me. The block format is neither CSR nor CSC. |
But the underlying matrix is one of them? For me it was just not clear if both are supported (perhaps I should just try but it is late 😄) |
using Ferrite, SparseArrays, BenchmarkTools
Ke = zeros(4,4)
K = sprand(4,4,1.0)
assembler = start_assemble(K)
dofs = collect(1:4)
@btime assemble!($assembler, $dofs, $Ke)This benchmark show no statistically significant difference between the PR and master. |
…h only a single dof range provided.
KnutAM
left a comment
There was a problem hiding this comment.
Sorry, missed the aliasing in the previous round and had some questions about that. I didn't notice that and that was the reason for the performance question since I figured with double the vectors there could be some additional costs.
Otherwise just some minor tweaks.
Co-authored-by: Knut Andreas Meyer <knutam@gmail.com>
Closes #1133 (and #968 ?)