Skip to content

Element Push: Restructure#323

Merged
ax3l merged 1 commit into
BLAST-ImpactX:developmentfrom
ax3l:topic-restructure-push
Mar 23, 2023
Merged

Element Push: Restructure#323
ax3l merged 1 commit into
BLAST-ImpactX:developmentfrom
ax3l:topic-restructure-push

Conversation

@ax3l
Copy link
Copy Markdown
Member

@ax3l ax3l commented Mar 23, 2023

Element Push: Restructure

Add an overarching particle container push operator to each element. This one by default pushes the reference particle and then the particle beam, as before.

Purpose

This is a preparation for diagnostics in #299 and ML elements, which will operate on the whole particle container. It's also a preparation to simplify the bug fixes introduced for elements with dynamically allocated state from #320.

Add an overarching particle container push operator
to each element. This one by default pushes the
reference particle and then the particle beam, as before.
Comment on lines +31 to +33
Programmable (amrex::ParticleReal ds=0.0, int nslice=1)
: m_ds(ds), m_nslice(nslice)
{}
Copy link
Copy Markdown
Member Author

@ax3l ax3l Mar 23, 2023

Choose a reason for hiding this comment

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

These constructor arguments were forgotten to be exposed earlier.
The default arguments default to the prior signature.

@ax3l ax3l requested review from RTSandberg and cemitch99 March 23, 2023 04:56
@ax3l ax3l added the component: elements Elements/maps/external fields label Mar 23, 2023
@ax3l ax3l merged commit 8aa7f25 into BLAST-ImpactX:development Mar 23, 2023
@ax3l ax3l deleted the topic-restructure-push branch March 23, 2023 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: elements Elements/maps/external fields

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant