Skip to content

EAMxx: Replacing temporary views with the emaxx buffer. #7199

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

Merged
merged 11 commits into from
Apr 9, 2025

Conversation

odiazib
Copy link
Contributor

@odiazib odiazib commented Apr 1, 2025

I modified the mam4::buffer to be utilized across all mam4 processes by making the number of buffer.scratch processes dependent on the layout. These variables are specifically designed for the ncol x nlev layout. For other layout types, I introduced buffer.temporary_views, which is a 1D view. To configure buffer.temporary_views, I implemented the methods get_len_temporary_views and init_temporary_views in each process. Additionally, I did not replace views that need to be reset to zero each time run_impl is invoked.

[BFB]

@odiazib odiazib requested a review from singhbalwinder April 1, 2025 02:30
@odiazib odiazib added MAM4xx MAM4xx related changes EAMxx Issues related to EAMxx BFB PR leaves answers BFB labels Apr 1, 2025
@odiazib odiazib marked this pull request as ready for review April 1, 2025 11:12
@odiazib odiazib requested review from overfelt, bartgol and mahf708 April 1, 2025 11:12
@odiazib odiazib changed the title EAMxx: Replacing temporal views with the emaxx buffer. EAMxx: Replacing temporary views with the emaxx buffer. Apr 2, 2025
Copy link
Contributor

@mahf708 mahf708 left a comment

Choose a reason for hiding this comment

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

🍏

@odiazib odiazib force-pushed the emaxx/mam4_buffer branch from 772fbe1 to fe47ffa Compare April 4, 2025 22:16
@odiazib odiazib force-pushed the emaxx/mam4_buffer branch from fe47ffa to 1ea1a69 Compare April 4, 2025 23:00
@bartgol bartgol marked this pull request as draft April 5, 2025 04:06
@bartgol bartgol marked this pull request as ready for review April 5, 2025 04:06
singhbalwinder added a commit that referenced this pull request Apr 9, 2025
…#7199)

EAMxx: Replacing temporary views with the emaxx buffer.

I modified the mam4::buffer to be utilized across all mam4 processes by
making the number of buffer.scratch processes dependent on the layout.
These variables are specifically designed for the ncol x nlev layout.
For other layout types, I introduced buffer.temporary_views, which is a
1D view. To configure buffer.temporary_views, I implemented the methods
get_len_temporary_views and init_temporary_views in each process.
Additionally, I did not replace views that need to be reset to zero each
time run_impl is invoked.

[BFB]

* odiazib/emaxx/mam4_buffer:
  EAMxx: Fixing the typo from temporal to temporary.
  EMAxx: clang-format
  EMAxx: Fixing the failing test by using views instead of buffer_.
  EAMxx: Remove buffer.work and move the temporal views size inside buffer_size.
  EAMxx: Using buffer_ to set temporal views in wetscav.
  EAMxx: Using buffer_ to set temporal views in optics.
  EAMxx: Using buffer_ to set temporal views in microphysics.
  EAMxx: Using buffer_ to set temporal views in dry deposition.
  EAMxx: Using buffer_ to set temporal views in ACI.
  EAMxx: Utilizing the buffer within the ACI intefface.
  EAMxx: Modifying the mam4xx buffer to set the number of scratch files.
@singhbalwinder singhbalwinder merged commit 5d4eb3b into E3SM-Project:master Apr 9, 2025
22 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BFB PR leaves answers BFB EAMxx Issues related to EAMxx MAM4xx MAM4xx related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants