aboutsummaryrefslogtreecommitdiff
path: root/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp')
-rw-r--r--Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
index 2faf48c04..831d1e89f 100644
--- a/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
+++ b/Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithmGalileanRZ.cpp
@@ -290,23 +290,13 @@ void PsatdAlgorithmGalileanRZ::InitializeSpectralCoefficients (SpectralFieldData
}
void
-PsatdAlgorithmGalileanRZ::CurrentCorrection (const int lev,
- SpectralFieldDataRZ& field_data,
- std::array<std::unique_ptr<amrex::MultiFab>,3>& current,
- const std::unique_ptr<amrex::MultiFab>& rho )
+PsatdAlgorithmGalileanRZ::CurrentCorrection (SpectralFieldDataRZ& field_data)
{
// Profiling
WARPX_PROFILE( "PsatdAlgorithmGalileanRZ::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){
@@ -367,13 +357,6 @@ PsatdAlgorithmGalileanRZ::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