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

Particles: More Specializations #51

Merged
merged 1 commit into from
Jul 22, 2022

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jul 22, 2022

Add a few more template specializations as used in ImpactX and HiPACE++ particle containers.

Add a few more template specializations as used in ImpactX and
HiPACE++ particle containers.
@ax3l ax3l added the enhancement New feature or request label Jul 22, 2022
@ax3l ax3l requested a review from RTSandberg July 22, 2022 18:45
@ax3l ax3l enabled auto-merge (squash) July 22, 2022 19:02
@@ -80,7 +80,8 @@ void make_ArrayOfStructs(py::module &m)
}

void init_ArrayOfStructs(py::module& m) {
make_ArrayOfStructs<7,0> (m);
make_ArrayOfStructs< 0, 0> (m);
Copy link
Member Author

Choose a reason for hiding this comment

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

@RTSandberg this one should cause no problems, does it?

     make_ArrayOfStructs< 0, 0> (m);

Copy link
Member

Choose a reason for hiding this comment

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

I can't think of any reason it should cause problems, we even have some tests in place to keep the user from accidentally referencing non-existent real or int data

Copy link
Member Author

Choose a reason for hiding this comment

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

Awesome, thanks! :)

@ax3l ax3l merged commit 411e052 into AMReX-Codes:development Jul 22, 2022
@ax3l ax3l deleted the topic-moreParticleTemplates branch July 22, 2022 19:17
Copy link
Member

@RTSandberg RTSandberg 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 to me

@@ -80,7 +80,8 @@ void make_ArrayOfStructs(py::module &m)
}

void init_ArrayOfStructs(py::module& m) {
make_ArrayOfStructs<7,0> (m);
make_ArrayOfStructs< 0, 0> (m);
Copy link
Member

Choose a reason for hiding this comment

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

I can't think of any reason it should cause problems, we even have some tests in place to keep the user from accidentally referencing non-existent real or int data

make_Particle< 3, 2 > (m);
make_Particle< 4, 0 > (m); // HiPACE++ 22.07
make_Particle< 5, 0 > (m); // ImpactX 22.07
make_Particle< 37, 1> (m); // HiPACE++ 22.07
Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the comments indicating which versions are for which codes

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure thing, thanks :)

Thank you for documenting the task in #49 as well ✨

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.

2 participants