diff options
author | 2021-12-21 14:38:03 -0500 | |
---|---|---|
committer | 2021-12-21 11:38:03 -0800 | |
commit | eba5447a30bbbf71d729d7010ee3cf591dc3c016 (patch) | |
tree | e6b8775cdb1522aeb009312e2efaac2c43a7b974 /Source/WarpX.cpp | |
parent | 59918d5b98ecca0679fafd12af03f9d6a68fdba7 (diff) | |
download | WarpX-eba5447a30bbbf71d729d7010ee3cf591dc3c016.tar.gz WarpX-eba5447a30bbbf71d729d7010ee3cf591dc3c016.tar.zst WarpX-eba5447a30bbbf71d729d7010ee3cf591dc3c016.zip |
Add runtime option to use DM that is 'similar' to the mother grids in the PML. (#2665)
* add runtime option to use DM that is 'similar' to the mother grids in the PML.
* update amrex
* toggle similar dm
* add runtime option to use DM that is 'similar' to the mother grids in the PML.
* toggle similar dm
* bump tolerance
* document option
* Change default PML behavior for psatd_dive_test
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 52d77fd25..785debe79 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -193,6 +193,8 @@ int WarpX::n_current_deposition_buffer = -1; int WarpX::do_nodal = false; +int WarpX::do_similar_dm_pml = 1; + #ifdef AMREX_USE_GPU bool WarpX::do_device_synchronize = true; #else @@ -747,6 +749,7 @@ WarpX::ReadParameters () pp_warpx.query("pml_has_particles", pml_has_particles); pp_warpx.query("do_pml_j_damping", do_pml_j_damping); pp_warpx.query("do_pml_in_domain", do_pml_in_domain); + pp_warpx.query("do_similar_dm_pml", do_similar_dm_pml); // Default values of WarpX::do_pml_dive_cleaning and WarpX::do_pml_divb_cleaning: // false for FDTD solver, true for PSATD solver. |