diff options
author | 2019-08-29 10:18:18 -0700 | |
---|---|---|
committer | 2019-08-29 10:18:18 -0700 | |
commit | a3973f060b6e3c26dd04eea00315bc00a94e3725 (patch) | |
tree | db135146767cc9360534cf1488858d2e7405584a | |
parent | d40adc4e8caf3994bb24790960097b0fb779cd06 (diff) | |
download | WarpX-a3973f060b6e3c26dd04eea00315bc00a94e3725.tar.gz WarpX-a3973f060b6e3c26dd04eea00315bc00a94e3725.tar.zst WarpX-a3973f060b6e3c26dd04eea00315bc00a94e3725.zip |
Bug fix of RZgeometry from merge with dev
-rw-r--r-- | Source/FieldSolver/WarpX_FDTD.H | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/WarpX_FDTD.H b/Source/FieldSolver/WarpX_FDTD.H index 39623971e..232a84e8e 100644 --- a/Source/FieldSolver/WarpX_FDTD.H +++ b/Source/FieldSolver/WarpX_FDTD.H @@ -57,7 +57,7 @@ void warpx_push_by_yee(int i, int j, int k, Array4<Real> const& By, #if defined WARPX_DIM_3D By(i,j,k) += + dtsdx * (Ez(i+1,j,k ) - Ez(i,j,k)) - dtsdz * (Ex(i ,j,k+1) - Ex(i,j,k)); -#elif (defined WARPX_DIM_XY) || (defined WARPX_DIM_RZ) +#elif (defined WARPX_DIM_XZ) || (defined WARPX_DIM_RZ) // Note that the 2D Cartesian and RZ mode 0 are the same By(i,j,0,0) += + dtsdx * (Ez(i+1,j ,0,0) - Ez(i,j,0,0)) - dtsdz * (Ex(i ,j+1,0,0) - Ex(i,j,0,0)); @@ -105,7 +105,7 @@ void warpx_push_ex_yee(int i, int j, int k, Array4<Real> const& Ex, Ex(i,j,k) += + dtsdy_c2 * (Bz(i,j,k) - Bz(i,j-1,k )) - dtsdz_c2 * (By(i,j,k) - By(i,j ,k-1)) - mu_c2_dt * Jx(i,j,k); -#elif (defined WARPX_DIM_XY) || (defined WARPX_DIM_RZ) +#elif (defined WARPX_DIM_XZ) || (defined WARPX_DIM_RZ) // Note that the 2D Cartesian and RZ mode 0 are the same Ex(i,j,0,0) += - dtsdz_c2 * (By(i,j,0,0) - By(i,j-1,0,0)) - mu_c2_dt * Jx(i,j,0,0); |