aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-26 19:48:42 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-26 20:15:42 -0700
commit759f7e1bae3db1c2f436800189a3780a8447841e (patch)
tree4b48fc36c0d8e1e990c7c5d00d834a30bd6dd1dd /Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp
parentdcd283a89a0ad7ccd4787fc6801e6c3d7b2ad4f1 (diff)
downloadWarpX-759f7e1bae3db1c2f436800189a3780a8447841e.tar.gz
WarpX-759f7e1bae3db1c2f436800189a3780a8447841e.tar.zst
WarpX-759f7e1bae3db1c2f436800189a3780a8447841e.zip
Cosmetic changes
Diffstat (limited to '')
-rw-r--r--Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp
index 60e9d58c0..900b542be 100644
--- a/Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/PsatdAlgorithm.cpp
@@ -9,17 +9,16 @@ PsatdAlgorithm::PsatdAlgorithm(const SpectralKSpace& spectral_kspace,
const DistributionMapping& dm,
const int norder_x, const int norder_y,
const int norder_z, const bool nodal, const Real dt)
-{
- const BoxArray& ba = spectral_kspace.spectralspace_ba;
-
- // Allocate the 1D vectors
- modified_kx_vec = spectral_kspace.getModifiedKComponent(dm, 0, norder_x, nodal);
+// Compute and assign the modified k vectors
+: modified_kx_vec(spectral_kspace.getModifiedKComponent(dm, 0, norder_x, nodal))
#if (AMREX_SPACEDIM==3)
- modified_ky_vec = spectral_kspace.getModifiedKComponent(dm, 1, norder_y, nodal);
- modified_kz_vec = spectral_kspace.getModifiedKComponent(dm, 2, norder_z, nodal);
+ modified_ky_vec(spectral_kspace.getModifiedKComponent(dm, 1, norder_y, nodal))
+ modified_kz_vec(spectral_kspace.getModifiedKComponent(dm, 2, norder_z, nodal))
#else
- modified_kz_vec = spectral_kspace.getModifiedKComponent(dm, 1, norder_z, nodal);
+ modified_kz_vec(spectral_kspace.getModifiedKComponent(dm, 1, norder_z, nodal))
#endif
+{
+ const BoxArray& ba = spectral_kspace.spectralspace_ba;
// Allocate the arrays of coefficients
C_coef = SpectralCoefficients(ba, dm, 1, 0);