aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
diff options
context:
space:
mode:
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];
+ }
+
+}