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

Refactor surface corrections to re-use same loop regardless of radial_only #736

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

warrickball
Copy link
Contributor

The surface correction loops over the modes currently work by always deriving the radial correction and then proceeding onto the non-radial corrections if radial_only is .false.. This PR consolidates the radial and non-radial loops by using radial_only to decide whether to loop over up to 0 (if .true.) or 3 (if .false.).

I also cleared out trailing whitespace in that file while I was at it.

The astero test surface_effects passed locally.

@warrickball warrickball requested a review from pmocz October 1, 2024 20:21
@warrickball warrickball self-assigned this Oct 1, 2024
Copy link
Member

@pmocz pmocz left a comment

Choose a reason for hiding this comment

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

Nice simplification of the code 🚀

@warrickball warrickball merged commit 6c3a3e4 into main Nov 10, 2024
3 checks passed
@warrickball warrickball deleted the astero-refactor-radial-only branch March 2, 2025 21:46
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