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

refactoring LightBulb_functions #196

Merged
merged 26 commits into from
Jan 17, 2024
Merged

Conversation

mari2895
Copy link
Collaborator

@mari2895 mari2895 commented Jan 4, 2024

PR Summary

PR Checklist

  • Adds a test for any bugs fixed. Adds tests for new features.
  • Format your changes by calling scripts/bash/format.sh.
  • Explain what you did.

@mari2895 mari2895 changed the title WIP/refactoring LightBulbCalcTau WIP/refactoring LightBulb_functions Jan 4, 2024
@mari2895 mari2895 changed the title WIP/refactoring LightBulb_functions refactoring LightBulb_functions Jan 12, 2024
Copy link
Collaborator

@curiousmiah curiousmiah left a comment

Choose a reason for hiding this comment

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

Mariam, thank you for taking the lead on making these changes to the lightbulb algorithm. I looked over each of the files, and they look good to me. But then again, I was mostly looking over them to learn. Rather than approving merging, I'll just comment. I'll let Jonah give the final approval for merge.

Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Two minor changes but otherwise this is good to go.

src/radiation/radiation.cpp Outdated Show resolved Hide resolved
const int num_partitions = pmesh->DefaultNumPartitions();
TaskRegion &sync_region_lb = tc.AddRegion(num_partitions);
for (int ib = 0; ib < num_partitions; ++ib) {
auto &base = pmesh->mesh_data.GetOrAdd("base", ib);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably don't need to pull out base explicitly. Just use sc0.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed this line

mari2895 and others added 3 commits January 17, 2024 14:07
Co-authored-by: Jonah Miller <jonah.maxwell.miller@gmail.com>
Copy link
Collaborator

@Yurlungur Yurlungur left a comment

Choose a reason for hiding this comment

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

Assuming tests pass (and it runs for you) we're good to merge.

@Yurlungur Yurlungur merged commit 532be0f into main Jan 17, 2024
2 checks passed
@Yurlungur Yurlungur deleted the mg/refactoring_coolingfunction branch January 17, 2024 23:10
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