From 300c1659c4bcdae104f828c01de8873743f73d94 Mon Sep 17 00:00:00 2001 From: Edoardo Zoni <59625522+EZoni@users.noreply.github.com> Date: Thu, 15 Jul 2021 15:39:34 -0700 Subject: Spectral Index: Replace `struct`s of `enum` with Class (#2062) * Add New Spectral Index Class * Cleaning * Use New Spectral Index Class in PML * Cleaning * Reuse Available Data for divE * Allocate Rho Data Only when Necessary * Cleaning * Fix Bug in RZ Geometry * Revert Commits for Allocation of Rho Data * Cleaning * Update Forward Declaration Header * Do Not Include Unnecessary Header Files * Doxygen * Do Not Use Separate div() Cleaning Flags * SpectralFieldIndex: Add Missing param to Doxygen * Remove Unused getRequiredNumberOfFields --- .../SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H') diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H index 577ded61f..40dfeef38 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/ComovingPsatdAlgorithm.H @@ -28,6 +28,7 @@ class ComovingPsatdAlgorithm : public SpectralBaseAlgorithm */ ComovingPsatdAlgorithm (const SpectralKSpace& spectral_kspace, const amrex::DistributionMapping& dm, + const SpectralFieldIndex& spectral_index, const int norder_x, const int norder_y, const int norder_z, @@ -42,11 +43,6 @@ class ComovingPsatdAlgorithm : public SpectralBaseAlgorithm */ virtual void pushSpectralFields (SpectralFieldData& f) const override final; - virtual int getRequiredNumberOfFields () const override final - { - return SpectralFieldIndex::n_fields; - } - /* \brief Initialize the coefficients needed in the update equations */ void InitializeSpectralCoefficients (const SpectralKSpace& spectral_kspace, @@ -89,6 +85,8 @@ class ComovingPsatdAlgorithm : public SpectralBaseAlgorithm SpectralRealCoefficients C_coef, S_ck_coef; SpectralComplexCoefficients Theta2_coef, X1_coef, X2_coef, X3_coef, X4_coef; + SpectralFieldIndex m_spectral_index; + // k vectors KVectorComponent kx_vec; #if (AMREX_SPACEDIM==3) -- cgit v1.2.3