diff options
author | 2021-10-25 14:20:15 -0700 | |
---|---|---|
committer | 2021-10-25 14:20:15 -0700 | |
commit | 3ef89c687399c2724ceba1841e35bb6acbca9b00 (patch) | |
tree | caceddf710b5435aa5164b19dce54547fa978b71 /Source/Parallelization/GuardCellManager.H | |
parent | a247bd0091d8f188d6ff40695688c3e2fc64ba84 (diff) | |
download | WarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.tar.gz WarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.tar.zst WarpX-3ef89c687399c2724ceba1841e35bb6acbca9b00.zip |
Bugfixes for ref_ratio = 4 in the moving window direction. (#2452)
* Bugfixes for ref_ratio = 4 in the moving window direction.
* == should be <=
* only adjust guard cells for moving window by ref_ratio if nlevs > 1
* restore logic to always have at least 2 grow cells if moving window is on
* remove comment about this not being needed on level 0 - it does.
Diffstat (limited to 'Source/Parallelization/GuardCellManager.H')
-rw-r--r-- | Source/Parallelization/GuardCellManager.H | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Parallelization/GuardCellManager.H b/Source/Parallelization/GuardCellManager.H index 0567a4162..34ac4eba8 100644 --- a/Source/Parallelization/GuardCellManager.H +++ b/Source/Parallelization/GuardCellManager.H @@ -55,7 +55,8 @@ public: const bool safe_guard_cells, const int do_electrostatic, const int do_multi_J, - const bool fft_do_time_averaging); + const bool fft_do_time_averaging, + const amrex::Vector<amrex::IntVect>& ref_ratios); // Guard cells allocated for MultiFabs E and B amrex::IntVect ng_alloc_EB = amrex::IntVect::TheZeroVector(); |