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

Fix #47 & Improve Streamline Performance #48

Merged
merged 3 commits into from
Jan 28, 2025

Conversation

bcaddy
Copy link
Collaborator

@bcaddy bcaddy commented Jan 27, 2025

This fixes #47 and fixes a few spots where the streamlines would be unnecessarily computed and plotted multiple times in a row; this should reduce the time to plot streamlines by 2-3x in many cases.

Credit to @pcrumley for figuring out what the fix for Issue #47 was.

@bcaddy bcaddy linked an issue Jan 27, 2025 that may be closed by this pull request
1 task
bcaddy and others added 2 commits January 27, 2025 16:01
Before this change when the user was zoomed into a section of the domain
and turned on the streamlines it would overlay the streamlines for the
full domain onto the zoomed in section. This change fixes that so that
only the streamlines in the zoomed section are plotted.

Fixes PrincetonUniversity#47

Co-authored-by: Patrick Crumley <[email protected]>
In a few places the streamlines would be computed and plotted multiple
times. I've removed those cases so that the streamlines will only be
computed and plotted once. This should result in a noticeable speedup
in plotting streamlines.
Copy link
Collaborator

@pcrumley pcrumley left a comment

Choose a reason for hiding this comment

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

LGTM

@bcaddy bcaddy merged commit bc496d1 into PrincetonUniversity:master Jan 28, 2025
1 check passed
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.

Incorrect field line visualization at zoomed-in region
2 participants