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

Make showgrid work for all cells #570

Merged
merged 3 commits into from
Dec 21, 2022
Merged

Make showgrid work for all cells #570

merged 3 commits into from
Dec 21, 2022

Conversation

KnutAM
Copy link
Member

@KnutAM KnutAM commented Dec 21, 2022

Ref #420
Hit this problem again, would be nice to resolve this if possible!
Making new PR from a new branch as history got messed up when merging with master...

Side note: Came up when checking the discussion of how to parameterize the cell type, as the standard quadratic quad from Abaqus is not supported as this has Serendipity-type interpolation (8 nodes)...

@fredrikekre fredrikekre merged commit 4de2b6c into master Dec 21, 2022
@fredrikekre fredrikekre deleted the kam/showgrid2 branch December 21, 2022 12:58
@@ -708,25 +711,11 @@ end

function Base.show(io::IO, ::MIME"text/plain", grid::Grid)
print(io, "$(typeof(grid)) with $(getncells(grid)) ")
typestrs = sort!(collect(Set(celltypes[typeof(x)] for x in grid.cells)))
str = join(io, typestrs, '/')
typestrs = sort!(collect(Set(repr(typeof(x)) for x in grid.cells)))
Copy link
Member

Choose a reason for hiding this comment

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

This seems to be really slow, try showing something like generate_grid(Triangle, (1000, 1000)) in the REPL.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, missed that performance regression. Fixed in #559.

@KnutAM KnutAM mentioned this pull request Feb 10, 2023
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.

2 participants