aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver')
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp7
-rw-r--r--Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp7
2 files changed, 12 insertions, 2 deletions
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp
index 02f1d8087..da91eb73d 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp
+++ b/Source/FieldSolver/FiniteDifferenceSolver/EvolveE.cpp
@@ -166,9 +166,14 @@ void FiniteDifferenceSolver::EvolveECartesian (
[=] AMREX_GPU_DEVICE (int i, int j, int k){
#ifdef AMREX_USE_EB
// Skip field push if this cell is fully covered by embedded boundaries
+#ifdef WARPX_DIM_3D
if (ly(i,j,k) <= 0) return;
+#elif defined(WARPX_DIM_XZ)
+ //In XZ Ey is associated with a mesh node, so we need to check if the mesh node is covered
+ amrex::ignore_unused(ly);
+ if (lx(i, j, k)<=0 || lx(i-1, j, k)<=0 || lz(i, j-1, k)<=0 || lz(i, j, k)<=0) return;
+#endif
#endif
-
Ey(i, j, k) += c2 * dt * (
- T_Algo::DownwardDx(Bz, coefs_x, n_coefs_x, i, j, k)
+ T_Algo::DownwardDz(Bx, coefs_z, n_coefs_z, i, j, k)
diff --git a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp
index 7f0f99556..d6bc9be9e 100644
--- a/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp
+++ b/Source/FieldSolver/FiniteDifferenceSolver/MacroscopicEvolveE.cpp
@@ -193,8 +193,13 @@ void FiniteDifferenceSolver::MacroscopicEvolveECartesian (
[=] AMREX_GPU_DEVICE (int i, int j, int k){
#ifdef AMREX_USE_EB
- // Skip field push if this cell is fully covered by embedded boundaries
+#ifdef WARPX_DIM_3D
if (ly(i,j,k) <= 0) return;
+#elif defined(WARPX_DIM_XZ)
+ //In XZ Ey is associated with a mesh node, so we need to check if the mesh node is covered
+ amrex::ignore_unused(ly);
+ if (lx(i, j, k)<=0 || lx(i-1, j, k)<=0 || lz(i, j, k)<=0 || lz(i, j-1, k)<=0) return;
+#endif
#endif
// Interpolate conductivity, sigma, to Ey position on the grid
amrex::Real const sigma_interp = CoarsenIO::Interp( sigma_arr, sigma_stag,
lass='insertions'>+1 2019-10-15cyccnt::Instant: simplify the Send / Sync implGravatar Jorge Aparicio 1-13/+2 2019-10-15document the limitations of cyccnt::{Instant,Duration}Gravatar Jorge Aparicio 1-5/+19 2019-10-15more monotonic timer docsGravatar Jorge Aparicio 6-5/+33 2019-10-15v0.5.0 beta releaseGravatar Jorge Aparicio 7-27/+31 2019-10-11Fix matrix.to web link for the static room view.Gravatar Tim Small 1-1/+1 2019-10-10critical sections: each task gets its own contextGravatar chrysn 1-1/+1 2019-09-17fix linkchecker warningGravatar Jorge Aparicio 1-1/+1 2019-09-17fix more linksGravatar Jorge Aparicio 8-15/+15 2019-09-17update the CHANGELOGGravatar Jorge Aparicio 2-3/+38 2019-09-17www: fix book placementGravatar Jorge Aparicio 1-4/+3 2019-09-17www: prefix latest docs with the minor versionGravatar Jorge Aparicio 1-3/+6 2019-09-15remove reference from README to CONTRIBUTINGGravatar nils-grepit 1-1/+1 2019-09-15turn git deps into crates.io depsGravatar Jorge Aparicio 2-4/+2 2019-09-15add CONTRIBUTING.md and link to Matrix roomGravatar nils-grepit 2-0/+26 2019-09-15Revert "Fixed install script"Gravatar Emil Fresk 1-2/+2 2019-09-15Fixed install scriptGravatar Emil Fresk 1-2/+2 2019-09-15fix install scriptGravatar Jorge Aparicio 1-1/+1 2019-09-15Book fixGravatar Emil Fresk 1-1/+1 2019-09-150.4: don't cross compile docsGravatar Jorge Aparicio 1-0/+1 2019-09-15One more place updatedGravatar Emil Fresk 1-1/+1 2019-09-15faster doc builds and fix redirect on 0.4Gravatar Jorge Aparicio 2-12/+16 2019-09-15fix redirects and CNAMEGravatar Jorge Aparicio 2-4/+11 2019-09-15Updated links in README for rtfm.rsGravatar Emil Fresk 2-3/+3 2019-09-15link to older docs from the bookGravatar Jorge Aparicio 1-1/+4