aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2022-08-12 14:04:54 -0700
committerGravatar GitHub <noreply@github.com> 2022-08-12 14:04:54 -0700
commit1ed58acbee55bfa93918e89d7dd618177fb314e8 (patch)
treecb4a0c7d3eed6780a1ec6a810e7c1a87c2181f5c /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp
parent7545b3c28acfa9d5ea8d3b8c600020a5bf4f3008 (diff)
downloadWarpX-1ed58acbee55bfa93918e89d7dd618177fb314e8.tar.gz
WarpX-1ed58acbee55bfa93918e89d7dd618177fb314e8.tar.zst
WarpX-1ed58acbee55bfa93918e89d7dd618177fb314e8.zip
Fill Guard Cells of Fields and Currents Independently (#3302)
* Fill Guard Cells of Fields and Currents Independently * Fill Guard Cells of Averaged Fields as Regular Fields
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp
index 4ecbb9000..1a2334cc6 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.cpp
@@ -31,9 +31,7 @@ SpectralBaseAlgorithm::SpectralBaseAlgorithm(const SpectralKSpace& spectral_kspa
const amrex::DistributionMapping& dm,
const SpectralFieldIndex& spectral_index,
const int norder_x, const int norder_y,
- const int norder_z, const bool nodal,
- const amrex::IntVect& fill_guards):
- m_fill_guards(fill_guards),
+ const int norder_z, const bool nodal):
m_spectral_index(spectral_index),
// Compute and assign the modified k vectors
modified_kx_vec(spectral_kspace.getModifiedKComponent(dm,0,norder_x,nodal)),
@@ -66,8 +64,6 @@ SpectralBaseAlgorithm::ComputeSpectralDivE (
field_data.ForwardTransform(lev, *Efield[1], Idx.Ey, 0 );
field_data.ForwardTransform(lev, *Efield[2], Idx.Ez, 0 );
- const amrex::IntVect& fill_guards = m_fill_guards;
-
// Loop over boxes
for (MFIter mfi(field_data.fields); mfi.isValid(); ++mfi){
@@ -107,5 +103,6 @@ SpectralBaseAlgorithm::ComputeSpectralDivE (
}
// Backward Fourier transform
- field_data.BackwardTransform(lev, divE, Idx.divE, 0, fill_guards);
+ const amrex::IntVect& fill_guards = amrex::IntVect(0);
+ field_data.BackwardTransform(lev, divE, Idx.divE, fill_guards, 0);
}