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

Re-vectorize SW two-stream #275

Merged
merged 11 commits into from
Apr 18, 2024
Merged

Conversation

RobertPincus
Copy link
Member

Adopt suggestions by @peterukk in #215

This approach makes expensive direct beam computations even when solar zenith angle is < 0, but masks those results out in layers where the direct beam does not reach. This will have practical impacts only in columns where the top of the column is in sunlight but the bottom not (or if users aren't removing columns entirely below the horizon).

@RobertPincus
Copy link
Member Author

I've used compiler output to ensure that the loop changed in the PR did not vectorize using gfortran and ifort but does vectorize after this change.

@RobertPincus RobertPincus merged commit bbc14c2 into develop Apr 18, 2024
33 of 34 checks passed
@RobertPincus RobertPincus deleted the feature-vectorize-two-stream branch April 18, 2024 11:32
RobertPincus added a commit that referenced this pull request May 21, 2024
… API (#284)

Accumulated changes and bug fixes. Changes LW answers (data repo is alsoupdated).
- New LW weights and secants (Change LW quadrature angles #282)
- A single source function on levels (Simplify LW source functions #250)
- Kernel API header files in Fortran and C (Add kernel API #272)
- Refactored two-stream, fixing RTE shortwave kernel not vectorizing #215 (Re-vectorize SW two-stream #275)
- Buxfixes, change to internal build systems and continuous integration (thanks to @skosukhin for ongoing help)
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