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

Use the new SoA Data Structure #245

Closed
wants to merge 1 commit into from

Conversation

Thierry992
Copy link

@Thierry992 Thierry992 commented Sep 13, 2022

Adapting the impactx code with the new SoA Particle structure we created in AMReX. Main changes are related to the structures declarations and to the Parallel-for-loops where we access the particles data.

To Do

  • replace container & iterator
  • replace loops
  • update Python

Third-party:

@ax3l ax3l self-requested a review September 13, 2022 17:33
@ax3l ax3l self-assigned this Sep 13, 2022
@ax3l ax3l requested a review from np-eazy September 13, 2022 17:33
@@ -142,6 +135,7 @@ namespace impactx
*/
auto old_np = particle_tile.numParticles();
auto new_np = old_np + pinned_tile.numParticles();
amrex::AllPrint() << "old_np=" << old_np << " new_np=" << new_np << "\n";
Copy link
Member

Choose a reason for hiding this comment

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

Needs to be updated in AMReX pls :)
See: AMReX-Codes/amrex#2878 (comment)

Adapting to SoA structures

Link the CMake file to Axel Warpx branch

Avoid branch conflicts

Correction of ParIter and ConstParIter

Adding corrections to make_alike function call

Update Diagnostics

Correction of the ParIter loop

Still adaptating ImpactX to SoAParticle

Update Init

Note:
  AMReX-Codes/amrex#2878 (comment)

Adapted the PushSingleParticle function to SoAParticle
@ax3l
Copy link
Member

ax3l commented Apr 19, 2023

Continued in #348

@ax3l ax3l closed this Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants