-
Notifications
You must be signed in to change notification settings - Fork 197
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
[WIP] Split Particle Container Init Logic #5015
Open
ax3l
wants to merge
8
commits into
ECP-WarpX:development
Choose a base branch
from
ax3l:topic-pc-init-fields
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I am back from vacation working on this again now. |
ax3l
force-pushed
the
topic-pc-init-fields
branch
3 times, most recently
from
July 19, 2024 22:03
d9fd104
to
dc71c1c
Compare
ax3l
force-pushed
the
topic-pc-init-fields
branch
3 times, most recently
from
August 16, 2024 20:38
ba678b7
to
5a6070e
Compare
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
August 28, 2024 23:13
5a6070e
to
ad89dc8
Compare
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
January 3, 2025 00:46
ad89dc8
to
54100a3
Compare
Back from parental leave (part 1) and working on this again. |
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
January 3, 2025 19:37
54100a3
to
2ea9c80
Compare
ax3l
changed the title
[WIP] PC: Do Less in Constructor
[WIP] Split Particle Container Init Logic
Jan 6, 2025
Minimize the logic done in the particle container constructor. Init data in `InitData()`. This is needed to have access to field data during particle init, e.g., to load particles from density files.
- special treatment of `pc_tmp` - `ispecies` is unused
QED logic init requires initialized particle species.
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
January 10, 2025 17:42
2ea9c80
to
07d6878
Compare
In IDEs, we want to attach debuggers to CTest runs. This needs an option to disable signal handling from AMReX to work.
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
January 10, 2025 22:06
07d6878
to
cfc39f4
Compare
ax3l
force-pushed
the
topic-pc-init-fields
branch
from
January 12, 2025 05:22
76deb19
to
2f18c0a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, the particle init is done very early in WarpX, which complicates new logic for when we want to query large, distributed fields to initialize particles from field values (external files of density and temperature maps, etc.).
This PR minimizes the logic done in the particle container constructor. We now init data explicitly in
InitData()
calls. This makes it easier to create particle container variables and meshes and then initialize particles based on initialized meshes at a later point in the logic.Isolated from #4754 for separate testing & merging.