diff options
author | 2022-02-16 19:01:36 -0800 | |
---|---|---|
committer | 2022-02-16 19:01:36 -0800 | |
commit | 19c51c7c979962fcfc1dc8d03ff04cd233593bf7 (patch) | |
tree | 12801ebc5a556476abe999c618b2861618acffbf /Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp | |
parent | a6f876a0f263510c0f1c52ae3e4f33fffa4095ea (diff) | |
download | WarpX-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/SpectralAlgorithms/PsatdAlgorithmRZ.cpp')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp index efc9337af..5bb409269 100644 --- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp +++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmRZ.cpp @@ -413,24 +413,13 @@ void PsatdAlgorithmRZ::InitializeSpectralCoefficients (SpectralFieldDataRZ const } void -PsatdAlgorithmRZ::CurrentCorrection (const int lev, - SpectralFieldDataRZ& field_data, - std::array<std::unique_ptr<amrex::MultiFab>,3>& current, - const std::unique_ptr<amrex::MultiFab>& rho) +PsatdAlgorithmRZ::CurrentCorrection (SpectralFieldDataRZ& field_data) { // Profiling WARPX_PROFILE( "PsatdAlgorithmRZ::CurrentCorrection" ); const SpectralFieldIndex& Idx = m_spectral_index; - // Forward Fourier transform of J and rho - field_data.ForwardTransform( lev, - *current[0], Idx.Jx, - *current[1], Idx.Jy); - field_data.ForwardTransform( lev, *current[2], Idx.Jz, 0); - field_data.ForwardTransform( lev, *rho, Idx.rho_old, 0 ); - field_data.ForwardTransform( lev, *rho, Idx.rho_new, 1 ); - // Loop over boxes for (amrex::MFIter mfi(field_data.fields); mfi.isValid(); ++mfi){ @@ -487,13 +476,6 @@ PsatdAlgorithmRZ::CurrentCorrection (const int lev, } }); } - - // Backward Fourier transform of J - field_data.BackwardTransform( lev, - *current[0], Idx.Jx, - *current[1], Idx.Jy); - field_data.BackwardTransform( lev, - *current[2], Idx.Jz, 0 ); } void |