diff options
author | 2022-03-03 15:14:54 -0800 | |
---|---|---|
committer | 2022-03-03 15:14:54 -0800 | |
commit | ef7e2ae56cb62da09c2602488398137c3d8a90f4 (patch) | |
tree | 9ed907656d97fe8796e0c323688bcb7d235fae11 /Source/FieldSolver/SpectralSolver | |
parent | dec136d2277b5592d9beb904c7aa104c97bee994 (diff) | |
download | WarpX-ef7e2ae56cb62da09c2602488398137c3d8a90f4.tar.gz WarpX-ef7e2ae56cb62da09c2602488398137c3d8a90f4.tar.zst WarpX-ef7e2ae56cb62da09c2602488398137c3d8a90f4.zip |
Refactor Vay Deposition Functions (#2885)
* Refactor Vay Deposition Functions
* Use rho Index Type for FFT of D
* Improve Doxygen Strings
Diffstat (limited to 'Source/FieldSolver/SpectralSolver')
20 files changed, 72 insertions, 108 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H index fde6bcb02..9139fa433 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.H @@ -112,15 +112,9 @@ class PsatdAlgorithm : public SpectralBaseAlgorithm * base class \c SpectralBaseAlgorithm and cannot be overridden by further * derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition ( - const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldData& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp index 52813cb13..35429109a 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp @@ -832,25 +832,13 @@ void PsatdAlgorithm::CurrentCorrection (SpectralFieldData& field_data) } void -PsatdAlgorithm::VayDeposition ( - const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) +PsatdAlgorithm::VayDeposition (SpectralFieldData& field_data) { // Profiling BL_PROFILE("PsatdAlgorithm::VayDeposition()"); const SpectralFieldIndex& Idx = m_spectral_index; - // Forward Fourier transform of D (temporarily stored in current): - // D is nodal and does not match the staggering of J, therefore we pass the - // actual staggering of D (IntVect(1)) to the ForwardTransform function - field_data.ForwardTransform(lev, *current[0], Idx.Jx, 0, IntVect(1)); - field_data.ForwardTransform(lev, *current[1], Idx.Jy, 0, IntVect(1)); - field_data.ForwardTransform(lev, *current[2], Idx.Jz, 0, IntVect(1)); - - const amrex::IntVect& fill_guards = m_fill_guards; - // Loop over boxes for (amrex::MFIter mfi(field_data.fields); mfi.isValid(); ++mfi) { @@ -903,11 +891,6 @@ PsatdAlgorithm::VayDeposition ( else fields(i,j,k,Idx.Jz) = 0._rt; }); } - - // Backward Fourier transform of J - field_data.BackwardTransform(lev, *current[0], Idx.Jx, 0, fill_guards); - field_data.BackwardTransform(lev, *current[1], Idx.Jy, 0, fill_guards); - field_data.BackwardTransform(lev, *current[2], Idx.Jz, 0, fill_guards); } #endif // WARPX_USE_PSATD diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.H index 13d2f1d5d..6f8497f8f 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.H @@ -65,14 +65,9 @@ class PsatdAlgorithmComoving : public SpectralBaseAlgorithm * base class \c SpectralBaseAlgorithm and cannot be overridden by further * derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldData& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp index 77d03b500..9ed33c801 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmComoving.cpp @@ -498,9 +498,7 @@ void PsatdAlgorithmComoving::CurrentCorrection (SpectralFieldData& field_data) } void -PsatdAlgorithmComoving::VayDeposition (const int /*lev*/, - SpectralFieldData& /*field_data*/, - std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/) +PsatdAlgorithmComoving::VayDeposition (SpectralFieldData& /*field_data*/) { amrex::Abort("Vay deposition not implemented for comoving PSATD"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.H index 11a1ea33a..d3c519c94 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.H @@ -45,13 +45,9 @@ class PsatdAlgorithmGalileanRZ : public SpectralBaseAlgorithmRZ * base class \c SpectralBaseAlgorithmRZ and cannot be overridden by further * derived classes. * - * \param[in] lev mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, SpectralFieldDataRZ& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldDataRZ& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp index 831d1e89f..81674f396 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp @@ -360,9 +360,7 @@ PsatdAlgorithmGalileanRZ::CurrentCorrection (SpectralFieldDataRZ& field_data) } void -PsatdAlgorithmGalileanRZ::VayDeposition (const int /*lev*/, - SpectralFieldDataRZ& /*field_data*/, - std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/) +PsatdAlgorithmGalileanRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { amrex::Abort("Vay deposition not implemented in RZ geometry"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.H index 414394ba9..0689a7e49 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.H @@ -111,15 +111,9 @@ class PsatdAlgorithmJLinearInTime : public SpectralBaseAlgorithm * base class \c SpectralBaseAlgorithm and cannot be overridden by further * derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition ( - const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldData& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp index d06087484..e18055020 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmJLinearInTime.cpp @@ -433,15 +433,12 @@ void PsatdAlgorithmJLinearInTime::CurrentCorrection (SpectralFieldData& field_da } void -PsatdAlgorithmJLinearInTime::VayDeposition ( - const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) +PsatdAlgorithmJLinearInTime::VayDeposition (SpectralFieldData& field_data) { // Profiling BL_PROFILE("PsatdAlgorithmJLinearInTime::VayDeposition()"); - amrex::ignore_unused(lev, field_data, current); + amrex::ignore_unused(field_data); amrex::Abort("Vay deposition not implemented for multi-J PSATD algorithm"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.H index 243760857..630c26260 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.H @@ -63,14 +63,9 @@ class PsatdAlgorithmPml : public SpectralBaseAlgorithm * base class \c SpectralBaseAlgorithm and cannot be overridden by further * derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldData& field_data) override final; private: SpectralFieldIndex m_spectral_index; diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp index 7b8deec30..246609905 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPml.cpp @@ -408,9 +408,7 @@ PsatdAlgorithmPml::CurrentCorrection (SpectralFieldData& /*field_data*/) } void -PsatdAlgorithmPml::VayDeposition (const int /*lev*/, - SpectralFieldData& /*field_data*/, - std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/) +PsatdAlgorithmPml::VayDeposition (SpectralFieldData& /*field_data*/) { amrex::Abort("Vay deposition not implemented for PML PSATD"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.H index a9892cb40..6ea63c5a2 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.H @@ -46,12 +46,8 @@ class PsatdAlgorithmPmlRZ : public SpectralBaseAlgorithmRZ * derived classes. * * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldDataRZ& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldDataRZ& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp index 522fe1881..3b8609c03 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmPmlRZ.cpp @@ -166,9 +166,7 @@ PsatdAlgorithmPmlRZ::CurrentCorrection (SpectralFieldDataRZ& /* field_data */) } void -PsatdAlgorithmPmlRZ::VayDeposition (const int /* lev */, - SpectralFieldDataRZ& /*field_data*/, - std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/) +PsatdAlgorithmPmlRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { amrex::Abort("Vay deposition not implemented in RZ geometry PML"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.H index 9bbb695d2..608da5fd5 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.H @@ -49,14 +49,9 @@ class PsatdAlgorithmRZ : public SpectralBaseAlgorithmRZ * base class \c SpectralBaseAlgorithmRZ and cannot be overridden by further * derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldDataRZ& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) override final; + virtual void VayDeposition (SpectralFieldDataRZ& field_data) override final; private: diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp index 5bb409269..d2faecaa0 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp @@ -479,9 +479,7 @@ PsatdAlgorithmRZ::CurrentCorrection (SpectralFieldDataRZ& field_data) } void -PsatdAlgorithmRZ::VayDeposition (const int /* lev */, - SpectralFieldDataRZ& /*field_data*/, - std::array<std::unique_ptr<amrex::MultiFab>,3>& /*current*/) +PsatdAlgorithmRZ::VayDeposition (SpectralFieldDataRZ& /*field_data*/) { amrex::Abort("Vay deposition not implemented in RZ geometry"); } diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H index b4d63ec81..b4f70d5f5 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithm.H @@ -57,14 +57,9 @@ class SpectralBaseAlgorithm * (<a href="https://doi.org/10.1016/j.jcp.2013.03.010"> Vay et al, 2013</a>). * This virtual function is pure and must be defined in derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldData& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) = 0; + virtual void VayDeposition (SpectralFieldData& field_data) = 0; /** * \brief Compute spectral divergence of E diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H index 9e7719a49..a2e293dc2 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/SpectralBaseAlgorithmRZ.H @@ -50,14 +50,9 @@ class SpectralBaseAlgorithmRZ * (<a href="https://doi.org/10.1016/j.jcp.2013.03.010"> Vay et al, 2013</a>). * This virtual function is pure and must be defined in derived classes. * - * \param[in] lev The mesh-refinement level * \param[in,out] field_data All fields in Fourier space - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - virtual void VayDeposition (const int lev, - SpectralFieldDataRZ& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current) = 0; + virtual void VayDeposition (SpectralFieldDataRZ& field_data) = 0; protected: // Meant to be used in the subclasses diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.H b/Source/FieldSolver/SpectralSolver/SpectralSolver.H index 0953996fa..47ad47150 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.H @@ -86,13 +86,55 @@ class SpectralSolver const bool divb_cleaning); /** - * \brief Transform the component `i_comp` of MultiFab `mf` - * to spectral space, and store the corresponding result internally - * (in the spectral field specified by `field_index`) */ - void ForwardTransform( const int lev, + * \brief Transform the component i_comp of the MultiFab mf to Fourier space, + * and store the result internally (in the spectral field specified by field_index) + * + * \param[in] lev mesh refinement level + * \param[in] mf MultiFab that is transformed to Fourier space (component i_comp) + * \param[in] field_index index of the spectral field that stores the FFT result + * \param[in] i_comp component of the MultiFab mf that is transformed to Fourier space + * \param[in] stag index type that needs to be used to perform the FFT operation + */ + void ForwardTransform (const int lev, + const amrex::MultiFab& mf, + const int field_index, + const int i_comp, + const amrex::IntVect& stag); + + /** + * \brief Overload of ForwardTransform used if stag is not passed + */ + AMREX_FORCE_INLINE + void ForwardTransform (const int lev, const amrex::MultiFab& mf, const int field_index, - const int i_comp=0 ); + const int i_comp) + { + ForwardTransform(lev, mf, field_index, i_comp, mf.ixType().toIntVect()); + } + + /** + * \brief Overload of ForwardTransform used if i_comp is not passed + */ + AMREX_FORCE_INLINE + void ForwardTransform (const int lev, + const amrex::MultiFab& mf, + const int field_index, + const amrex::IntVect& stag) + { + ForwardTransform(lev, mf, field_index, 0, stag); + } + + /** + * Overload of ForwardTransform used if both i_comp and stag are not passed + */ + AMREX_FORCE_INLINE + void ForwardTransform (const int lev, + const amrex::MultiFab& mf, + const int field_index) + { + ForwardTransform(lev, mf, field_index, 0, mf.ixType().toIntVect()); + } /** * \brief Transform spectral field specified by `field_index` back to @@ -139,9 +181,9 @@ class SpectralSolver * \param[in,out] current Array of unique pointers to \c MultiFab storing * the three components of the current density */ - void VayDeposition (const int lev, std::array<std::unique_ptr<amrex::MultiFab>,3>& current) + void VayDeposition () { - algorithm->VayDeposition(lev, field_data, current); + algorithm->VayDeposition(field_data); } /** diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp index 3a9e23127..0f7804002 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolver.cpp @@ -92,10 +92,11 @@ void SpectralSolver::ForwardTransform( const int lev, const amrex::MultiFab& mf, const int field_index, - const int i_comp ) + const int i_comp, + const amrex::IntVect& stag ) { WARPX_PROFILE("SpectralSolver::ForwardTransform"); - field_data.ForwardTransform( lev, mf, field_index, i_comp ); + field_data.ForwardTransform( lev, mf, field_index, i_comp, stag ); } void diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H index 4868bd443..30c922512 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.H @@ -106,12 +106,8 @@ class SpectralSolverRZ * 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] lev The mesh refinement level - * \param[in,out] current Array of unique pointers to \c MultiFab storing - * the three components of the current density */ - void VayDeposition (const int lev, std::array<std::unique_ptr<amrex::MultiFab>,3>& current); + void VayDeposition (); /** * \brief Copy spectral data from component \c src_comp to component \c dest_comp diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp index 0d515100a..3f4bddd8b 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp @@ -157,7 +157,7 @@ SpectralSolverRZ::CurrentCorrection () } void -SpectralSolverRZ::VayDeposition (const int lev, std::array<std::unique_ptr<amrex::MultiFab>,3>& current) +SpectralSolverRZ::VayDeposition () { - algorithm->VayDeposition(lev, field_data, current); + algorithm->VayDeposition(field_data); } |