Skip to content

Task/rhornung67/mv sidre array example#1590

Merged
rhornung67 merged 6 commits into
developfrom
task/rhornung67/mv-sidre_array-example
Jun 30, 2025
Merged

Task/rhornung67/mv sidre array example#1590
rhornung67 merged 6 commits into
developfrom
task/rhornung67/mv-sidre_array-example

Conversation

@rhornung67

@rhornung67 rhornung67 commented Jun 19, 2025

Copy link
Copy Markdown
Member

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?

@BradWhitlock BradWhitlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice improvements to comments.

std::cout << std::endl;
// END DEBUG

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

Copy link
Copy Markdown
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
Copy Markdown
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.

@Arlie-Capps Arlie-Capps left a comment

Copy link
Copy Markdown
Contributor

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.

@kennyweiss kennyweiss left a comment

Copy link
Copy Markdown
Member

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).

Comment thread src/axom/sidre/examples/sidre_mcarray.cpp Outdated
@kennyweiss

Copy link
Copy Markdown
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
Copy Markdown
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