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

support getting and setting the positions of material points #26

Merged
merged 37 commits into from
Oct 20, 2023

Conversation

cwsmith
Copy link
Contributor

@cwsmith cwsmith commented Oct 19, 2023

This PR adds the polympo_setMPPositions and refactors the polympo_getMPPositions APIs that support passing host arrays with material point positions to the GPU structures maintained by pumipic.

All ctests pass on cranium.

Note, issue #21 applies to the code used in these APIs as 2d arrays are being passed between the host to device.

Copy link

@onkarsahni onkarsahni left a comment

Choose a reason for hiding this comment

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

Looks good. Some changes needed (including _f for fortran bindings as updated in PR #22).

src/pmpo_c.cpp Outdated Show resolved Hide resolved
src/pmpo_c.cpp Outdated Show resolved Hide resolved
src/pmpo_c.h Outdated Show resolved Hide resolved
src/pmpo_c.h Outdated Show resolved Hide resolved
src/pmpo_fortran.f90 Outdated Show resolved Hide resolved
src/pmpo_fortran.f90 Show resolved Hide resolved
test/readMPAS.f90 Outdated Show resolved Hide resolved
test/readMPAS.f90 Outdated Show resolved Hide resolved
Copy link

@onkarsahni onkarsahni left a comment

Choose a reason for hiding this comment

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

Looks good. One change requested.

test/readMPAS.f90 Outdated Show resolved Hide resolved
Copy link

@onkarsahni onkarsahni left a comment

Choose a reason for hiding this comment

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

Missed one before, so one more change requested.

Choose a reason for hiding this comment

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

Line 98: isMPActive = MP_ACTIVE !no inactive MPs and some changed below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, fixed fdc7119

Copy link

@onkarsahni onkarsahni left a comment

Choose a reason for hiding this comment

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

Looks good.

@onkarsahni onkarsahni merged commit 671054c into cws/pumipicDps Oct 20, 2023
@onkarsahni onkarsahni deleted the cws/getsetMpPositions branch October 20, 2023 03:42
@RPIFisherman RPIFisherman added the enhancement New feature or request label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants