diff options
author | 2021-05-10 09:59:41 -0700 | |
---|---|---|
committer | 2021-05-10 09:59:41 -0700 | |
commit | 8d3cf84d6fef860a761e29d13ca9c9af37f9bdda (patch) | |
tree | cd8e14ce5d978a6f0cf76d4207d6a745d60c600e /Source/WarpX.cpp | |
parent | 268f4835b77d6b47de6734d1a5fb3a5440e9d4b5 (diff) | |
download | WarpX-8d3cf84d6fef860a761e29d13ca9c9af37f9bdda.tar.gz WarpX-8d3cf84d6fef860a761e29d13ca9c9af37f9bdda.tar.zst WarpX-8d3cf84d6fef860a761e29d13ca9c9af37f9bdda.zip |
Guard Cells with PSATD: Fill With Inverse FFT, Damp Fields (#1867)
* Loop Over Full Box in Inverse FFTs
* Enable Fields Damping in Cartesian Geometry
* Minimize Style Changes
* Fields Damping: Fix Tileboxes For General Case
* Clean Up
* Assume Periodicity For Last Nodal Point in Inverse FFTs
* Update Benchmark of averaged_galilean_2d_psatd
* Update Benchmark of averaged_galilean_3d_psatd
* Update Benchmark of averaged_galilean_2d_psatd
* Update Benchmarks
* Update Benchmark of pml_psatd_dive_divb_cleaning
* Clean Up: Use More Descriptive Names
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 2629da00a..895db9fd2 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -959,13 +959,12 @@ WarpX::ReadParameters () "psatd.update_with_rho must be equal to 1 for comoving PSATD"); } -# ifdef WARPX_DIM_RZ - if (!Geom(0).isPeriodic(1)) { + constexpr int zdir = AMREX_SPACEDIM - 1; + if (!Geom(0).isPeriodic(zdir)) + { use_damp_fields_in_z_guard = true; } pp_psatd.query("use_damp_fields_in_z_guard", use_damp_fields_in_z_guard); -# endif - } // for slice generation // |