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

Add basic Base.show method for assemblers #598

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Conversation

fredrikekre
Copy link
Member

This patch adds basic Base.show methods for assemblers. Without this the full matrix/vector is displayed in the REPL, which is pretty annoying. Example output:

julia> start_assemble(A, b)
Ferrite.AssemblerSparsityPattern{Float64, Int64} for assembling into:
 - 882×882 SparseArrays.SparseMatrixCSC{Float64, Int64} with 14884 stored entries
 - 882-element Vector{Float64}

This patch adds basic `Base.show` methods for assemblers. Without this
the full matrix/vector is displayed in the REPL, which is pretty
annoying. Example output:

```
julia> start_assemble(A, b)
Ferrite.AssemblerSparsityPattern{Float64, Int64} for assembling into:
 - 882×882 SparseArrays.SparseMatrixCSC{Float64, Int64} with 14884 stored entries
 - 882-element Vector{Float64}
```
@fredrikekre fredrikekre merged commit 930887e into master Feb 9, 2023
@fredrikekre fredrikekre deleted the fe/assemblyshow branch February 9, 2023 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant