aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralKSpace.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/SpectralKSpace.cpp
parentdcd283a89a0ad7ccd4787fc6801e6c3d7b2ad4f1 (diff)
downloadWarpX-759f7e1bae3db1c2f436800189a3780a8447841e.tar.gz
WarpX-759f7e1bae3db1c2f436800189a3780a8447841e.tar.zst
WarpX-759f7e1bae3db1c2f436800189a3780a8447841e.zip
Cosmetic changes
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
index 6df3ea8fa..d91891a30 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralKSpace.cpp
@@ -53,7 +53,7 @@ SpectralKSpace::getKComponent( const DistributionMapping& dm,
const int i_dim ) const
{
// Initialize an empty ManagedVector in each box
- KVectorComponent k_comp = KVectorComponent(spectralspace_ba, dm);
+ KVectorComponent k_comp(spectralspace_ba, dm);
// Loop over boxes and allocate the corresponding ManagedVector
// for each box owned by the local MPI proc
for ( MFIter mfi(spectralspace_ba, dm); mfi.isValid(); ++mfi ){
@@ -100,7 +100,7 @@ SpectralKSpace::getSpectralShiftFactor( const DistributionMapping& dm,
const int shift_type ) const
{
// Initialize an empty ManagedVector in each box
- SpectralShiftFactor shift_factor = SpectralShiftFactor( spectralspace_ba, dm );
+ SpectralShiftFactor shift_factor( spectralspace_ba, dm );
// Loop over boxes and allocate the corresponding ManagedVector
// for each box owned by the local MPI proc
for ( MFIter mfi(spectralspace_ba, dm); mfi.isValid(); ++mfi ){
@@ -144,7 +144,7 @@ SpectralKSpace::getModifiedKComponent( const DistributionMapping& dm,
const bool nodal ) const
{
// Initialize an empty ManagedVector in each box
- KVectorComponent modified_k_comp = KVectorComponent(spectralspace_ba, dm);
+ KVectorComponent modified_k_comp(spectralspace_ba, dm);
// Compute real-space stencil coefficients
Vector<Real> stencil_coef = getFonbergStencilCoefficients(n_order, nodal);