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 flux_dn_dir not updated in all sky two stream #550

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Fix flux_dn_dir not updated in all sky two stream #550

merged 1 commit into from
Oct 7, 2024

Conversation

Sbozzolo
Copy link
Member

@Sbozzolo Sbozzolo commented Oct 7, 2024

Prior to this commit, flux_dn_dir was not set in the two stream case for non-gray radiation, leading to incorrect values (whatever was in the memory at init). Now, the variable is accumulated over for ever g-point.

Copy link
Member

@szy21 szy21 left a comment

Choose a reason for hiding this comment

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

Thanks!

@sriharshakandala
Copy link
Member

We only need flux_dn_dir at the surface (lev = 1)

@Sbozzolo
Copy link
Member Author

Sbozzolo commented Oct 7, 2024

We only need flux_dn_dir at the surface (lev = 1)

Adjusting that can be done in a separate PR

Prior to this commit, `flux_dn_dir` was not set in the two stream case
for non-gray radiation, leading to garbage values (whatever was in the
memory at init). Now, the variable is accumulated over for ever g-point.
@Sbozzolo
Copy link
Member Author

Sbozzolo commented Oct 7, 2024

Updated to only update the first level (this means that the rest of the array will be undefined)

@sriharshakandala
Copy link
Member

@Sbozzolo Sbozzolo merged commit e39a005 into main Oct 7, 2024
9 of 10 checks 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.

3 participants