forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SyncCurrent and SyncRho for multi-levels (ECP-WarpX#3777)
* Fix SyncCurrent and SyncRho for multi-levels Previously these two function did not work when max_level > 1. For example, when max_level = 2, the coarse patch data from level 2 were coarsened and added to the fine patch on level 1. However, the coarse patch on level 1 did not have any contribution from level 2 as it should have, because the coarsening was performed before the fine patch on level 1 received the level 2 contribution. The order has been fixed in this commit. * Improve inline comment Co-authored-by: Weiqun Zhang <[email protected]> * Improve inline comments * Reset CI benchmark * Add comments * Update Source/Parallelization/WarpXComm.cpp Co-authored-by: Axel Huebl <[email protected]> * Update Source/Parallelization/WarpXComm.cpp Co-authored-by: Axel Huebl <[email protected]> * Update Source/Parallelization/WarpXComm.cpp Co-authored-by: Axel Huebl <[email protected]> --------- Co-authored-by: Edoardo Zoni <[email protected]> Co-authored-by: Edoardo Zoni <[email protected]> Co-authored-by: Axel Huebl <[email protected]>
- Loading branch information
1 parent
8ec6b19
commit f6cda9a
Showing
2 changed files
with
213 additions
and
54 deletions.
There are no files selected for viewing
36 changes: 18 additions & 18 deletions
36
Regression/Checksum/benchmarks_json/Langmuir_multi_2d_MR_psatd.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
{ | ||
"electrons": { | ||
"particle_momentum_x": 4.238116934276727e-20, | ||
"particle_momentum_x": 4.2387000553111037e-20, | ||
"particle_momentum_y": 0.0, | ||
"particle_momentum_z": 4.238116918188906e-20, | ||
"particle_position_x": 0.6553600150461454, | ||
"particle_position_y": 0.6553600150453582, | ||
"particle_momentum_z": 4.238700039223283e-20, | ||
"particle_position_x": 0.6553599659707846, | ||
"particle_position_y": 0.6553599659699976, | ||
"particle_weight": 3200000000000000.5 | ||
}, | ||
"lev=0": { | ||
"Bx": 0.0, | ||
"By": 48.481624783762086, | ||
"By": 46.86760020196344, | ||
"Bz": 0.0, | ||
"Ex": 7589841440058.995, | ||
"Ex": 7589330186947.288, | ||
"Ey": 0.0, | ||
"Ez": 7589841451955.45, | ||
"jx": 7282092285786011.0, | ||
"Ez": 7589330198843.742, | ||
"jx": 7283102663077210.0, | ||
"jy": 0.0, | ||
"jz": 7282092252988784.0 | ||
"jz": 7283102630279985.0 | ||
}, | ||
"lev=1": { | ||
"Bx": 0.0, | ||
"By": 376.07845874193026, | ||
"By": 369.2209081024592, | ||
"Bz": 0.0, | ||
"Ex": 7595314624325.873, | ||
"Ex": 7593801203430.788, | ||
"Ey": 0.0, | ||
"Ez": 7595314408918.084, | ||
"jx": 6594445628310054.0, | ||
"Ez": 7593800988021.711, | ||
"jx": 6597471633118175.0, | ||
"jy": 0.0, | ||
"jz": 6594445442498818.0 | ||
"jz": 6597471447306984.0 | ||
}, | ||
"positrons": { | ||
"particle_momentum_x": 4.2380886359427404e-20, | ||
"particle_momentum_x": 4.238670783273887e-20, | ||
"particle_momentum_y": 0.0, | ||
"particle_momentum_z": 4.2380886149634417e-20, | ||
"particle_position_x": 0.6553596427220252, | ||
"particle_position_y": 0.6553596427227213, | ||
"particle_momentum_z": 4.238670762294589e-20, | ||
"particle_position_x": 0.6553596917214832, | ||
"particle_position_y": 0.6553596917221793, | ||
"particle_weight": 3200000000000000.5 | ||
} | ||
} |
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