diff options
author | 2020-07-14 16:23:20 +0200 | |
---|---|---|
committer | 2020-07-14 07:23:20 -0700 | |
commit | 89b4801d778f58f04162b2c886c6c57ea4cae009 (patch) | |
tree | c5a8910ae37f205fd6113f1e1e739e41762e1a7e /Source/WarpX.cpp | |
parent | ef5dd4af84197891217023b35246d3cbd88e1248 (diff) | |
download | WarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.tar.gz WarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.tar.zst WarpX-89b4801d778f58f04162b2c886c6c57ea4cae009.zip |
make fft_do_time_averaging a member of class WarpX (#1165)
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 8c1dded61..b6bd3fb7a 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -55,6 +55,8 @@ int WarpX::do_moving_window = 0; int WarpX::moving_window_dir = -1; Real WarpX::moving_window_v = std::numeric_limits<amrex::Real>::max(); +bool WarpX::fft_do_time_averaging = false; + Real WarpX::quantum_xi_c2 = PhysConst::xi_c2; Real WarpX::gamma_boost = 1.; Real WarpX::beta_boost = 0.; @@ -923,7 +925,7 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm bool const pml=false; spectral_solver_fp[lev].reset( new SpectralSolver( realspace_ba, dm, nox_fft, noy_fft, noz_fft, do_nodal, v_galilean, dx_vect, dt[lev], - pml, fft_periodic_single_box, update_with_rho ) ); + pml, fft_periodic_single_box, update_with_rho, fft_do_time_averaging ) ); # endif #endif m_fdtd_solver_fp[lev].reset( @@ -1038,7 +1040,7 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm realspace_ba.grow(ngE); // add guard cells spectral_solver_cp[lev].reset( new SpectralSolver( realspace_ba, dm, nox_fft, noy_fft, noz_fft, do_nodal, v_galilean, cdx_vect, dt[lev], - pml, fft_periodic_single_box, update_with_rho ) ); + pml, fft_periodic_single_box, update_with_rho, fft_do_time_averaging ) ); # endif #endif m_fdtd_solver_cp[lev].reset( |