aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-18 16:31:30 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-23 12:43:53 -0700
commit60fd6699d71212a71b5c2373ac2d13c21296ae1b (patch)
tree67687276156254f12d0858ff0a96fdb18313fc0a /Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
parent949f25f10118d8b66fe827706904c49ab42178c8 (diff)
downloadWarpX-60fd6699d71212a71b5c2373ac2d13c21296ae1b.tar.gz
WarpX-60fd6699d71212a71b5c2373ac2d13c21296ae1b.tar.zst
WarpX-60fd6699d71212a71b5c2373ac2d13c21296ae1b.zip
Added modified k vector
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
index ab684444d..03d62892f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
@@ -60,3 +60,19 @@ AllocateAndFillKvector( ManagedVector<Real>& k, const Box& bx, const Real* dx, c
// TODO: For real-to-complex,
}
+
+void
+ComputeModifiedKVector( ManagedVector<Real>& modified_k,
+ const ManagedVector<Real>& k,
+ const Box& bx, const Real dx, const int norder )
+{
+ // Allocate modified_k to the right size
+ int N = k.size();
+ modified_k.resize( N );
+
+ // For now, this simply copies the infinite order k
+ for (int i=0; i<N; i++ ){
+ modified_k[i] = k[i];
+ }
+
+}