Skip to content
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

SparseMatrixCSR extension #864

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

termi-official
Copy link
Member

@termi-official termi-official commented Dec 23, 2023

Towards #848 and #628 . This should show how we could assemble into custom sparse matrix formats.

TODO

  • Fix inhomogeneous boundary conditions
  • Add devdocs
  • Add test

@termi-official termi-official force-pushed the do/sparsematrixcsr-assembly-extension branch from 49d273a to 27d1980 Compare December 28, 2023 01:05
@termi-official termi-official force-pushed the do/sparsematrixcsr-assembly-extension branch from 27d1980 to 0c3efc8 Compare December 28, 2023 01:17
@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1a84b77) 93.29% compared to head (0328f24) 93.34%.

Files Patch % Lines
src/Dofs/ConstraintHandler.jl 97.36% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #864      +/-   ##
==========================================
+ Coverage   93.29%   93.34%   +0.05%     
==========================================
  Files          36       37       +1     
  Lines        5235     5291      +56     
==========================================
+ Hits         4884     4939      +55     
- Misses        351      352       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@termi-official termi-official marked this pull request as ready for review December 28, 2023 01:41
@termi-official termi-official added the awaiting review PR is finished from the authors POV, waiting for feedback label Dec 28, 2023
@termi-official termi-official removed the awaiting review PR is finished from the authors POV, waiting for feedback label Dec 28, 2023
@termi-official termi-official marked this pull request as draft December 28, 2023 02:26
@termi-official termi-official force-pushed the do/sparsematrixcsr-assembly-extension branch from 94ece96 to 8102774 Compare December 28, 2023 03:20
@termi-official termi-official marked this pull request as ready for review December 28, 2023 03:41
@termi-official termi-official added the awaiting review PR is finished from the authors POV, waiting for feedback label Dec 28, 2023
@termi-official termi-official changed the title SparseMatrixCSR extension baseline SparseMatrixCSR extension Dec 28, 2023
Copy link
Member

@KnutAM KnutAM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just took a look as I was curious, nice work on factoring out some parts - this will make it easier to extend!

ext/FerriteSparseMatrixCSR.jl Outdated Show resolved Hide resolved
Comment on lines 40 to 42
if !iszero(Ke[Kerow, permutation[i]])
_missing_sparsity_pattern_error(Krow, sorteddofs[i])
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like also this loop is never active either in tests, which seems related to above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I need @fredrikekre to help out here. The logic is the same as the for csc assembly, I just swapped the indices. I guess this is the same case as above, that we handle "too small sparse matrices"?

src/Dofs/ConstraintHandler.jl Outdated Show resolved Hide resolved
@termi-official termi-official mentioned this pull request Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review PR is finished from the authors POV, waiting for feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants