aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H
index 5762e1436..e1179d9cf 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H
+++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H
@@ -104,6 +104,20 @@ class SpectralSolverRZ
algorithm->CurrentCorrection( field_data, current, rho );
};
+ /**
+ * \brief Public interface to call the virtual function \c VayDeposition,
+ * declared in the base class SpectralBaseAlgorithmRZ and defined in its
+ * derived classes, from objects of class SpectralSolverRZ through the private
+ * unique pointer \c algorithm.
+ *
+ * \param[in,out] current Array of unique pointers to \c MultiFab storing
+ * the three components of the current density
+ */
+ void VayDeposition (std::array<std::unique_ptr<amrex::MultiFab>,3>& current)
+ {
+ algorithm->VayDeposition(field_data, current);
+ }
+
private:
SpectralFieldDataRZ field_data; // Store field in spectral space