aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralKSpace.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/SpectralKSpace.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/SpectralKSpace.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralKSpace.H6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H
index 2f0681c3b..fd77bb7b8 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.H
@@ -25,7 +25,8 @@ class SpectralKSpace
KVectorComponent getKComponent(
const amrex::DistributionMapping& dm, const int i_dim ) const;
KVectorComponent getModifiedKComponent(
- const amrex::DistributionMapping& dm, const int i_dim, const int order ) const;
+ const amrex::DistributionMapping& dm, const int i_dim,
+ const int n_order, const bool nodal ) const;
SpectralShiftFactor getSpectralShiftFactor(
const amrex::DistributionMapping& dm, const int i_dim, const int shift_type ) const;
@@ -36,4 +37,7 @@ class SpectralKSpace
amrex::RealVect dx;
};
+amrex::Vector<amrex::Real>
+getFonbergStencilCoefficients( const int n_order, const bool nodal );
+
#endif