-
Notifications
You must be signed in to change notification settings - Fork 199
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
@@ -45,9 +45,9 @@ | |||
|
|||
using namespace amrex::literals; | |||
|
|||
PlasmaInjector::PlasmaInjector (int ispecies, const std::string& name, | |||
PlasmaInjector::PlasmaInjector (const std::string& name, |
Check warning
Code scanning / CodeQL
Poorly documented large function Warning
Poorly documented function: fewer than 2% comments for a function of 117 lines.
I am back from vacation working on this again now. |
d9fd104
to
dc71c1c
Compare
ba678b7
to
5a6070e
Compare
5a6070e
to
ad89dc8
Compare
ad89dc8
to
54100a3
Compare
Back from parental leave (part 1) and working on this again. |
54100a3
to
2ea9c80
Compare
2ea9c80
to
07d6878
Compare
07d6878
to
cfc39f4
Compare
76deb19
to
2f18c0a
Compare
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.
In IDEs, we want to attach debuggers to CTest runs. This needs an option to disable signal handling from AMReX to work.
2f18c0a
to
4dfcf56
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.