aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/PhysicalParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-26 15:00:07 -0700
committerGravatar MaxThevenet <mthevenet@lbl.gov> 2019-09-26 15:00:07 -0700
commit153eabf2e6742a63013f4bcbc56f951998104ae3 (patch)
tree48678935eea711417c7715e67e839cfe8570aff5 /Source/Particles/PhysicalParticleContainer.cpp
parenteffa03e8d28fed99c8afac392538548afacfd915 (diff)
downloadWarpX-153eabf2e6742a63013f4bcbc56f951998104ae3.tar.gz
WarpX-153eabf2e6742a63013f4bcbc56f951998104ae3.tar.zst
WarpX-153eabf2e6742a63013f4bcbc56f951998104ae3.zip
add comments
Diffstat (limited to '')
-rw-r--r--Source/Particles/PhysicalParticleContainer.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp
index b0da0e887..b2bccf2ed 100644
--- a/Source/Particles/PhysicalParticleContainer.cpp
+++ b/Source/Particles/PhysicalParticleContainer.cpp
@@ -1026,12 +1026,15 @@ PhysicalParticleContainer::Evolve (int lev,
if (WarpX::use_fdtd_nci_corr)
{
+ // Filter arrays Ex[pti], store the result in
+ // filtered_Ex and update pointer exfab so that it
+ // points to filtered_Ex (and do the same for all
+ // components of E and B).
applyNCIFilter(lev, pti.tilebox(), exeli, eyeli, ezeli, bxeli, byeli, bzeli,
filtered_Ex, filtered_Ey, filtered_Ez,
filtered_Bx, filtered_By, filtered_Bz,
Ex[pti], Ey[pti], Ez[pti], Bx[pti], By[pti], Bz[pti],
exfab, eyfab, ezfab, bxfab, byfab, bzfab);
-
}
Exp.assign(np,0.0);
@@ -1113,6 +1116,10 @@ PhysicalParticleContainer::Evolve (int lev,
if (WarpX::use_fdtd_nci_corr)
{
+ // Filter arrays (*cEx)[pti], store the result in
+ // filtered_Ex and update pointer cexfab so that it
+ // points to filtered_Ex (and do the same for all
+ // components of E and B)
applyNCIFilter(lev-1, cbox, exeli, eyeli, ezeli, bxeli, byeli, bzeli,
filtered_Ex, filtered_Ey, filtered_Ez,
filtered_Bx, filtered_By, filtered_Bz,