You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/documentation/case.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -683,6 +683,7 @@ To restart the simulation from $k$-th time step, see @ref running "Restarting Ca
683
683
|`amr_tag_eps`| Real | Relative density-gradient threshold for AMR refinement tagging (default 0.1) |
684
684
|`amr_buf`| Integer | Coarse-cell padding around tagged cells when regridding (default 3) |
685
685
|`amr_subcycle`| Logical | Advance the coarse level at the case dt and the fine level at dt/2 (two substeps; Berger-Colella refluxing). Requires `amr`; incompatible with `cfl_dt`. |
686
+
|`amr_max_patches`| Integer | Number of fixed refined-patch slots preallocated (each max-patch sized; ~N x device memory); must be >= 1 (default 4) |
686
687
|`hybrid_weno`| Logical | Use linear-optimal reconstruction in smooth cells, full WENO only at flagged discontinuities (requires WENO reconstruction) |
687
688
|`hybrid_weno_eps`| Real | Smoothness threshold for hybrid WENO shock flagging; must be > 0 (default 1e-2) |
688
689
|`hybrid_riemann`| Logical | Use a cheap central/Rusanov flux in smooth cells, full HLLC only at flagged discontinuities (requires HLLC, 5eq/6eq) |
@@ -823,6 +824,14 @@ Accumulated fine-level fluxes are applied back to the coarse level (reflux corre
823
824
after each coarse step.
824
825
`amr_subcycle` is incompatible with `cfl_dt` (variable time step) and requires `amr = T`.
825
826
827
+
**Patch slots.**
828
+
`amr_max_patches` (default 4) sets the number of fixed refined-patch slots preallocated
829
+
for the run. Each slot is sized to the maximum patch extent, so `N` slots require roughly
830
+
`N` times the device memory of a single patch; the goal is the compute win of refining
831
+
separated features independently, and memory efficiency (compact per-patch pools) is a
832
+
follow-up. The current release populates a single slot; multi-patch clustering is
833
+
forthcoming.
834
+
826
835
**Restart.**
827
836
Each save step writes a fine-level AMR restart file alongside the level-0 restart data
828
837
(whose format is unchanged): the current — possibly regridded — patch box and the fine
@@ -847,6 +856,7 @@ visualization output is future work.
847
856
|`amr_tag_eps`| Real | Normalized density-gradient threshold for refinement tagging; must be > 0 when `amr_regrid_int > 0` (default 0.1) |
848
857
|`amr_buf`| Integer | Coarse-cell padding around tagged cells; must be >= 1 when `amr_regrid_int > 0` (default 3) |
849
858
|`amr_subcycle`| Logical | Advance fine level at dt/2 (two substeps per coarse step) with Berger–Colella refluxing |
859
+
|`amr_max_patches`| Integer | Number of fixed refined-patch slots preallocated (each max-patch sized; ~N x device memory); must be >= 1 (default 4) |
0 commit comments