aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/FiniteDifferenceSolver
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2021-04-21 12:17:52 -0700
committerGravatar GitHub <noreply@github.com> 2021-04-21 12:17:52 -0700
commitf95329cf2eae659b785be722afeea5ec028a4c87 (patch)
tree3d3c83ece41856a623b39412b21c6ede652a3208 /Source/FieldSolver/FiniteDifferenceSolver
parentd515b7a7da830dbf3a484942197aa4e7a9aef414 (diff)
downloadWarpX-f95329cf2eae659b785be722afeea5ec028a4c87.tar.gz
WarpX-f95329cf2eae659b785be722afeea5ec028a4c87.tar.zst
WarpX-f95329cf2eae659b785be722afeea5ec028a4c87.zip
Fix Silver-Mueller boundary: cell ratio (#1907)
* Fix typo in the Silver-Mueller boundary conditions * Reset checksum for silver-mueller
Diffstat (limited to 'Source/FieldSolver/FiniteDifferenceSolver')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp
index 6e644838f..1a4aa10b2 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp
+++ b/Source/FieldSolver/FiniteDifferenceSolver/ApplySilverMuellerBoundary.cpp
@@ -148,11 +148,11 @@ void FiniteDifferenceSolver::ApplySilverMuellerBoundary (
amrex::Real const coef2_x = 2._rt*cdt_over_dx/(1._rt + cdt_over_dx) / PhysConst::c;
#ifdef WARPX_DIM_3D
amrex::Real const cdt_over_dy = PhysConst::c*dt*m_stencil_coefs_y[0];
- amrex::Real const coef1_y = (1._rt - cdt_over_dy)/(1._rt + cdt_over_dx);
+ amrex::Real const coef1_y = (1._rt - cdt_over_dy)/(1._rt + cdt_over_dy);
amrex::Real const coef2_y = 2._rt*cdt_over_dy/(1._rt + cdt_over_dy) / PhysConst::c;
#endif
amrex::Real const cdt_over_dz = PhysConst::c*dt*m_stencil_coefs_z[0];
- amrex::Real const coef1_z = (1._rt - cdt_over_dz)/(1._rt + cdt_over_dx);
+ amrex::Real const coef1_z = (1._rt - cdt_over_dz)/(1._rt + cdt_over_dz);
amrex::Real const coef2_z = 2._rt*cdt_over_dz/(1._rt + cdt_over_dz) / PhysConst::c;
// Loop through the grids, and over the tiles within each grid