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

Test: Charge Deposition #165

Merged
merged 3 commits into from
Aug 11, 2022
Merged

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Jul 19, 2022

Test the charge deposition logic & scaling of values.

  • fix charge (individual particle weighting) of MPI-parallel bunch init
  • add summing to MPI-enabled tests and generalize to work without duplicate cells as sum() does by default

Ran via

cmake -S . -B build -DImpactX_PYTHON=ON
cmake --build build -j 2
cmake --build build -j 2 --target pip_install

# serial
python3 -m pytest -v -ssss tests/python/test_charge_deposition.py
# parallel
mpirun -n 4 python3 -m pytest -v -ssss tests/python/test_charge_deposition.py

Prepares #162
Depends on:

@ax3l ax3l added component: space charge Space charge & potential solver component: tests examples, tests and benchmarks labels Jul 19, 2022
@ax3l ax3l force-pushed the test-charge_deposition branch 6 times, most recently from 65fe204 to e015764 Compare July 20, 2022 01:21
@ax3l ax3l mentioned this pull request Jul 26, 2022
@ax3l ax3l force-pushed the test-charge_deposition branch 2 times, most recently from 1578016 to bc94372 Compare August 6, 2022 01:34
@ax3l ax3l added bug Something isn't working bug: affects latest release Bug also exists in latest release version labels Aug 6, 2022
@ax3l ax3l force-pushed the test-charge_deposition branch 3 times, most recently from aa6da4c to 92f8478 Compare August 8, 2022 05:42
@ax3l ax3l force-pushed the test-charge_deposition branch 3 times, most recently from 6668871 to 5dece5e Compare August 11, 2022 15:35
@ax3l ax3l changed the title [Draft] Test: Charge Deposition Test: Charge Deposition Aug 11, 2022
Test the charge deposition logic & scaling of values.
@ax3l ax3l merged commit aa543c4 into ECP-WarpX:development Aug 11, 2022
@ax3l ax3l deleted the test-charge_deposition branch August 11, 2022 18:11
@ax3l ax3l requested review from n01r and RTSandberg August 11, 2022 18:11
@ax3l ax3l mentioned this pull request Aug 16, 2022
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: affects latest release Bug also exists in latest release version bug Something isn't working component: space charge Space charge & potential solver component: tests examples, tests and benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant