Skip to content

Commit

Permalink
update reference values for CI test; add SyncRho call to deposit rho
Browse files Browse the repository at this point in the history
  • Loading branch information
roelof-groenewald committed Jan 24, 2022
1 parent e226bd4 commit 19ecdb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/Python/WarpXWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ namespace
#ifdef WARPX_DIM_RZ
warpx.ApplyInverseVolumeScalingToChargeDensity(rho_fp, lev);
#endif
warpx.SyncRho();
}

void warpx_ComputeDt () {
Expand Down
2 changes: 1 addition & 1 deletion mewarpx/tests/test_assemblies.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def test_two_embedded_cylinders_scraping():
cylinder2.record_scrapedparticles()
cyl2_scraped = cylinder2.get_scrapedparticles()

assert np.allclose(cyl1_scraped['n'], np.array([3, 0]))
assert np.allclose(cyl1_scraped['n'], np.array([2, 0]))
assert np.allclose(cyl2_scraped['n'], np.array([1, 2]))

#######################################################################
Expand Down
Binary file not shown.

0 comments on commit 19ecdb9

Please sign in to comment.