From 38437f42bd4e7fa097fbd006c35b7fca5941614b Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Wed, 23 Sep 2020 10:26:50 -0700 Subject: Implemented fft_periodic_single_box for RZ spectral (#1301) * Implemented fft_periodic_single_box for RZ spectral For RZ psatd, simplified copy for forward transform * Apply review's suggestions and clean up * Add few comments, fix warnings, apply style conventions Co-authored-by: Dave Grote Co-authored-by: Edoardo Zoni --- Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp') diff --git a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp index 9074d689d..c6457a036 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralSolverRZ.cpp @@ -24,16 +24,14 @@ * \param pml Whether the boxes in which the solver is applied are PML boxes * PML is not supported. */ -SpectralSolverRZ::SpectralSolverRZ(amrex::BoxArray const & realspace_ba, - amrex::DistributionMapping const & dm, - int const n_rz_azimuthal_modes, - int const norder_z, bool const nodal, - amrex::RealVect const dx, amrex::Real const dt, - int const lev, - bool const pml ) +SpectralSolverRZ::SpectralSolverRZ (amrex::BoxArray const & realspace_ba, + amrex::DistributionMapping const & dm, + int const n_rz_azimuthal_modes, + int const norder_z, bool const nodal, + amrex::RealVect const dx, amrex::Real const dt, + int const lev) : k_space(realspace_ba, dm, dx) { - // Initialize all structures using the same distribution mapping dm // - The k space object contains info about the size of @@ -50,8 +48,7 @@ SpectralSolverRZ::SpectralSolverRZ(amrex::BoxArray const & realspace_ba, field_data = SpectralFieldDataRZ(realspace_ba, k_space, dm, algorithm->getRequiredNumberOfFields(), n_rz_azimuthal_modes, lev); - -}; +} void -- cgit v1.2.3