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/SpectralAlgorithms/PsatdAlgorithm.cpp | |
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 '')
-rw-r--r-- | Source/FieldSolver/SpectralSolver/SpectralAlgorithms/PsatdAlgorithm.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
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 |