-
Notifications
You must be signed in to change notification settings - Fork 19
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
Particles: More Specializations #51
Conversation
Add a few more template specializations as used in ImpactX and HiPACE++ particle containers.
@@ -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); |
There was a problem hiding this comment.
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);
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks! :)
There was a problem hiding this 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); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ✨
Add a few more template specializations as used in ImpactX and HiPACE++ particle containers.