aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp
diff options
context:
space:
mode:
authorGravatar Edoardo Zoni <59625522+EZoni@users.noreply.github.com> 2022-02-16 19:01:36 -0800
committerGravatar GitHub <noreply@github.com> 2022-02-16 19:01:36 -0800
commit19c51c7c979962fcfc1dc8d03ff04cd233593bf7 (patch)
tree12801ebc5a556476abe999c618b2861618acffbf /Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp
parenta6f876a0f263510c0f1c52ae3e4f33fffa4095ea (diff)
downloadWarpX-19c51c7c979962fcfc1dc8d03ff04cd233593bf7.tar.gz
WarpX-19c51c7c979962fcfc1dc8d03ff04cd233593bf7.tar.zst
WarpX-19c51c7c979962fcfc1dc8d03ff04cd233593bf7.zip
Refactor Current Correction Functions (#2839)
* Refactor Current Correction Functions * Clean Up, Reset Benchmark
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp
index a16175b0f..0d515100a 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp
@@ -149,16 +149,11 @@ SpectralSolverRZ::ComputeSpectralDivE (const int lev,
* defined in the base class SpectralBaseAlgorithmRZ and possibly overridden
* by its derived classes (e.g. PsatdAlgorithmRZ), from
* objects of class SpectralSolverRZ through the private unique pointer \c algorithm
- *
- * \param[in,out] current two-dimensional array of unique pointers to MultiFab
- * storing the three components of the current density
- * \param[in] rho unique pointer to MultiFab storing the charge density
*/
void
-SpectralSolverRZ::CurrentCorrection (const int lev,
- std::array<std::unique_ptr<amrex::MultiFab>,3>& current,
- const std::unique_ptr<amrex::MultiFab>& rho) {
- algorithm->CurrentCorrection(lev, field_data, current, rho);
+SpectralSolverRZ::CurrentCorrection ()
+{
+ algorithm->CurrentCorrection(field_data);
}
void