aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-07-14 16:23:20 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-14 07:23:20 -0700
commit89b4801d778f58f04162b2c886c6c57ea4cae009 (patch)
treec5a8910ae37f205fd6113f1e1e739e41762e1a7e /Source/FieldSolver/SpectralSolver/SpectralSolver.cpp
parentef5dd4af84197891217023b35246d3cbd88e1248 (diff)
downloadWarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.tar.gz
WarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.tar.zst
WarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.zip
make fft_do_time_averaging a member of class WarpX (#1165)
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralSolver.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralSolver.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp
index 16894da78..7146c7d4c 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp
@@ -39,7 +39,8 @@ SpectralSolver::SpectralSolver(
const amrex::Array<amrex::Real,3>& v_galilean,
const amrex::RealVect dx, const amrex::Real dt,
const bool pml, const bool periodic_single_box,
- const bool update_with_rho ) {
+ const bool update_with_rho,
+ const bool fft_do_time_averaging) {
// Initialize all structures using the same distribution mapping dm
@@ -51,9 +52,6 @@ SpectralSolver::SpectralSolver(
// - Select the algorithm depending on the input parameters
// Initialize the corresponding coefficients over k space
- amrex::ParmParse pp("psatd");
- pp.query("do_time_averaging", fft_do_time_averaging);
-
if (pml) {
algorithm = std::unique_ptr<PMLPsatdAlgorithm>( new PMLPsatdAlgorithm(
k_space, dm, norder_x, norder_y, norder_z, nodal, dt ) );