aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralSolver.H
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-22 11:28:08 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-23 12:43:53 -0700
commiteb5ee68612afe016afd47a621937ee57006c135c (patch)
treee00c7b36d0bc0b0332563a2a719c9f394e511c2a /Source/FieldSolver/SpectralSolver/SpectralSolver.H
parent76f3c0cb1ba717de8fa571a06fbb0267b4f83237 (diff)
downloadWarpX-eb5ee68612afe016afd47a621937ee57006c135c.tar.gz
WarpX-eb5ee68612afe016afd47a621937ee57006c135c.tar.zst
WarpX-eb5ee68612afe016afd47a621937ee57006c135c.zip
Use Fonberg coefficients to calculate the modified k
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralSolver.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralSolver.H4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H
index 06d53a2a9..363ac7bd8 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H
@@ -19,14 +19,14 @@ class SpectralSolver
SpectralSolver( const amrex::BoxArray& realspace_ba,
const amrex::DistributionMapping& dm,
const int norder_x, const int norder_y, const int norder_z,
- const amrex::RealVect dx, const amrex::Real dt )
+ const bool nodal, const amrex::RealVect dx, const amrex::Real dt )
{
// Initialize all structures using the same distribution mapping dm
// - Initialize k space (Contains size of each box in spectral space,
// and corresponding values of the k vectors)
const SpectralKSpace k_space = SpectralKSpace( realspace_ba, dm, dx );
// - Initialize algorithm (coefficients) over this space
- algorithm = PsatdAlgorithm( k_space, dm, norder_x, norder_y, norder_z, dt );
+ algorithm = PsatdAlgorithm( k_space, dm, norder_x, norder_y, norder_z, nodal, dt );
// - Initialize arrays for fields in Fourier space + FFT plans
field_data = SpectralFieldData( realspace_ba, k_space, dm );
};