diff options
author | 2022-03-03 15:14:54 -0800 | |
---|---|---|
committer | 2022-03-03 15:14:54 -0800 | |
commit | ef7e2ae56cb62da09c2602488398137c3d8a90f4 (patch) | |
tree | 9ed907656d97fe8796e0c323688bcb7d235fae11 /Source/Evolve/WarpXEvolve.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 'Source/Evolve/WarpXEvolve.cpp')
-rw-r--r-- | Source/Evolve/WarpXEvolve.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Source/Evolve/WarpXEvolve.cpp b/Source/Evolve/WarpXEvolve.cpp index 4ef68cfc9..b7c344954 100644 --- a/Source/Evolve/WarpXEvolve.cpp +++ b/Source/Evolve/WarpXEvolve.cpp @@ -385,13 +385,6 @@ WarpX::OneStep_nosub (Real cur_time) SyncCurrent(); SyncRho(); - // Apply current correction in Fourier space: for periodic single-box global FFTs - // without guard cells, apply this after calling SyncCurrent - if (WarpX::maxwell_solver_id == MaxwellSolverAlgo::PSATD) { - if (fft_periodic_single_box && (WarpX::current_deposition_algo == CurrentDepositionAlgo::Vay)) - VayDeposition(); - } - // At this point, J is up-to-date inside the domain, and E and B are // up-to-date including enough guard cells for first step of the field // solve. @@ -933,25 +926,3 @@ WarpX::applyMirrors(Real time){ } } } - -// Compute current from Vay deposition in Fourier space -void -WarpX::VayDeposition () -{ -#ifdef WARPX_USE_PSATD - if (WarpX::maxwell_solver_id == MaxwellSolverAlgo::PSATD) - { - for (int lev = 0; lev <= finest_level; ++lev) - { - spectral_solver_fp[lev]->VayDeposition(lev, current_fp[lev]); - if (spectral_solver_cp[lev]) spectral_solver_cp[lev]->VayDeposition(lev, current_cp[lev]); - } - } else { - AMREX_ALWAYS_ASSERT_WITH_MESSAGE( false, - "WarpX::VayDeposition: only implemented for spectral solver."); - } -#else - AMREX_ALWAYS_ASSERT_WITH_MESSAGE( false, - "WarpX::CurrentCorrection: requires WarpX build with spectral solver support."); -#endif -} |