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

Enable frozen points for boundaries #160

Merged
merged 7 commits into from
Dec 30, 2024
Merged

Conversation

streeve
Copy link
Collaborator

@streeve streeve commented Dec 16, 2024

Also adds particle class methods for owned, ghost, and global sizes (separate commit)

@streeve streeve requested a review from abisner December 16, 2024 19:03
@streeve streeve self-assigned this Dec 16, 2024
src/CabanaPD_Particles.hpp Outdated Show resolved Hide resolved
src/CabanaPD_Force.hpp Outdated Show resolved Hide resolved
@streeve streeve requested a review from abisner December 18, 2024 21:22
@streeve
Copy link
Collaborator Author

streeve commented Dec 19, 2024

@abisner tests added, mistakes fixed, and multiple sets of particles now possible

Copy link
Collaborator

@abisner abisner left a comment

Choose a reason for hiding this comment

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

Tried to give it another pretty thorough pass. Just a few minor suggestions/fixes is all. One big takeaway in createParticles() is that the localOffset should always be updated to the final resized size, whereas the frozenOffset can sometimes be updated to "point" to the same localOffset.

unit_test/tstParticles.hpp Outdated Show resolved Hide resolved
unit_test/tstComm.hpp Show resolved Hide resolved
src/force/CabanaPD_Force_Contact.hpp Show resolved Hide resolved
src/CabanaPD_Force.hpp Show resolved Hide resolved
src/CabanaPD_Force.hpp Show resolved Hide resolved
src/CabanaPD_Particles.hpp Outdated Show resolved Hide resolved
src/CabanaPD_Particles.hpp Outdated Show resolved Hide resolved
src/CabanaPD_Particles.hpp Show resolved Hide resolved
src/CabanaPD_Particles.hpp Show resolved Hide resolved
src/CabanaPD_Particles.hpp Show resolved Hide resolved
@streeve
Copy link
Collaborator Author

streeve commented Dec 30, 2024

Reverted the change from offset->num for frozen. I agree that in most cases that's what we want to use. Will merge when pipelines pass

@streeve streeve merged commit 0b93148 into ORNL:main Dec 30, 2024
14 checks passed
@streeve streeve deleted the frozen_points branch December 30, 2024 19:50
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.

2 participants