aboutsummaryrefslogtreecommitdiff
path: root/Examples/Modules
diff options
context:
space:
mode:
authorGravatar NeilZaim <49716072+NeilZaim@users.noreply.github.com> 2020-09-28 23:00:57 +0200
committerGravatar GitHub <noreply@github.com> 2020-09-28 14:00:57 -0700
commitcafd5549a21a6e49f3de4015d6634e69dec2c8da (patch)
tree51a5a9dc5ef20213d4de922d48ddcaebed087828 /Examples/Modules
parentfc22f938978589b41285aa6ab3948155bc0580ef (diff)
downloadWarpX-cafd5549a21a6e49f3de4015d6634e69dec2c8da.tar.gz
WarpX-cafd5549a21a6e49f3de4015d6634e69dec2c8da.tar.zst
WarpX-cafd5549a21a6e49f3de4015d6634e69dec2c8da.zip
Add option to only resample cells with high enough number of macroparticles (#1385)
* Add option to only resample cells with high enough number of macroparticles * Apply suggestions from code review Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Examples/Modules')
-rw-r--r--Examples/Modules/resampling/inputs_leveling_thinning6
1 files changed, 4 insertions, 2 deletions
diff --git a/Examples/Modules/resampling/inputs_leveling_thinning b/Examples/Modules/resampling/inputs_leveling_thinning
index c761a75dd..86208a92c 100644
--- a/Examples/Modules/resampling/inputs_leveling_thinning
+++ b/Examples/Modules/resampling/inputs_leveling_thinning
@@ -53,9 +53,11 @@ resampled_part2.do_not_push = 1
resampled_part2.do_resampling = 1
resampled_part2.resampling_algorithm = leveling_thinning
resampled_part2.resampling_algorithm_target_ratio = 1.3
-# This should trigger resampling at timestep 7 only in this case. The rest is here to test the
+# This should prevent actual resampling at timestep 7
+resampled_part2.resampling_algorithm_min_ppc = 80000
+# This should trigger resampling at timestep 6 and 7 in this case. The rest is here to test the
# intervals parser syntax.
-resampled_part2.resampling_trigger_intervals = 100 :120:3, 7:7:7
+resampled_part2.resampling_trigger_intervals = 100 :120:3, 6:6:6 , 7
# This should not trigger resampling: this species only has ~391 ppc on average.
resampled_part2.resampling_trigger_max_avg_ppc = 395