aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
diff options
context:
space:
mode:
authorGravatar Revathi Jambunathan <revanathan@login2.summit.olcf.ornl.gov> 2019-05-14 18:54:24 -0400
committerGravatar Revathi Jambunathan <revanathan@login2.summit.olcf.ornl.gov> 2019-05-14 18:54:24 -0400
commit4766b39209bf3ed2849e936c4f2dca7e437f991e (patch)
tree5ff51903c541c42804974daf11753b2e19f6bb3f /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
parentce1ee07a91bd6d2d82f5394149aac88b3aad0491 (diff)
downloadWarpX-4766b39209bf3ed2849e936c4f2dca7e437f991e.tar.gz
WarpX-4766b39209bf3ed2849e936c4f2dca7e437f991e.tar.zst
WarpX-4766b39209bf3ed2849e936c4f2dca7e437f991e.zip
changed made after merging with lastest dev version
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
index 8dd2a830f..3da0ef453 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp
@@ -23,6 +23,7 @@ PsatdAlgorithm::PsatdAlgorithm(const SpectralKSpace& spectral_kspace,
X3_coef = SpectralCoefficients(ba, dm, 1, 0);
InitializeCoefficience(spectral_kspace, dm, dt);
+}
// // Fill them with the right values:
// // Loop over boxes and allocate the corresponding coefficients
// // for each box owned by the local MPI proc
@@ -76,7 +77,6 @@ PsatdAlgorithm::PsatdAlgorithm(const SpectralKSpace& spectral_kspace,
// }
// });
// }
-};
/* Advance the E and B field in spectral space (stored in `f`)
* over one time step */
@@ -173,8 +173,7 @@ void PsatdAlgorithm::InitializeCoefficience(const SpectralKSpace& spectral_kspac
// for each box owned by the local MPI proc
for (MFIter mfi(ba, dm); mfi.isValid(); ++mfi){
- //const Box& bx = ba[mfi];
- const Box bx = ba[mfi];
+ const Box& bx = ba[mfi];
// Extract pointers for the k vectors
const Real* modified_kx = modified_kx_vec[mfi].dataPtr();