Skip to content

Task/rhornung67/mv sidre array example #1590

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 6 commits into from
Jun 30, 2025

Conversation

rhornung67
Copy link
Member

@rhornung67 rhornung67 commented Jun 19, 2025

Summary

  • This PR add explanatory comments to sidre array example code.
  • The file is renamed from sidre_array.cpp to sidre_mcarray.cpp since it uses sidre::MCArray

Resolves #663

@kennyweiss is this what you had in mind for the issue linked above?

Copy link
Member

@BradWhitlock BradWhitlock left a comment

Choose a reason for hiding this comment

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

Nice improvements to comments.

SLIC_INFO("Here is the array data in DataStore_2:\n");
root2->print();
std::cout << std::endl;
// END DEBUG

// STEP 3a: Create a new sidre::MCArray with data held in a View in the
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you mean STEP 3b ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Fixed.

Copy link
Contributor

@Arlie-Capps Arlie-Capps left a comment

Choose a reason for hiding this comment

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

Thanks, Rich. Much clearer. One possible typo.

Copy link
Member

@kennyweiss kennyweiss left a comment

Choose a reason for hiding this comment

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

Thanks @rhornung67

This example requires MPI. Should we generalize it slightly to also work when MPI is not available? (In that case, we wouldn't be able to use SPIO).

@kennyweiss
Copy link
Member

@kennyweiss is this what you had in mind for the issue linked above?

Yes -- just a few comments to show that MCArray has the same API as axom::Array<T,2>, but wraps a sidre::View.

Reviewer comment.

Co-authored-by: Kenny Weiss <kennyweiss@users.noreply.github.com>
@rhornung67
Copy link
Member Author

@kennyweiss I added an issue to capture your suggestion: #1598

@rhornung67 rhornung67 merged commit 2f102d4 into develop Jun 30, 2025
15 checks passed
@rhornung67 rhornung67 deleted the task/rhornung67/mv-sidre_array-example branch June 30, 2025 17:26
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.

Improve sidre::Array example
5 participants