Proposal: extend Richardson convergence harness to support N-dimensional refinement #1958
Closed
AstroKriel
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
|
i suggest another design of multi-dim refinement: define |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Closed by #1978 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Richardson convergence harness (
src/util/richardson.hpp) currently refines only in x, with ny/nz fixed at 8 cells per problem. This is correct for grid-aligned wave tests, but means oblique waves cannot be convergence-tested: transverse resolution is never refined, so errors plateau rather than converge.Proposed change
Add
setup.refine_n_dims(default: 1) to the harnessParametersstruct. The harness computes ny and nz as:refine_n_dims = 1:ny = 8, nz = 8(current behaviour; default)refine_n_dims = 2:ny = nx, nz = 8refine_n_dims = 3:ny = nx, nz = nxThe
runTestcallable signature changes fromrunTest(int nx)torunTest(int nx, int ny, int nz). Each problem lambda uses all three values when settingamr.n_cell.CI impact
None. The default (
refine_n_dims = 1) is identical to current behaviour. Higher-dimensional refinement is opt-in via TOML.Motivation
Two motivations:
Immediate: combining correctness and convergence tests into a single binary (see #1916) creates a param conflict. The convergence harness forces
ny = nz = 8regardless of the wave physics, while the sim mode may run on a 3D domain. Addingrefine_n_dimsgives the convergence infrastructure an explicit notion of domain dimensionality so both modes are consistent.Longer term: enables proper convergence testing for oblique wave propagation (modes in y/z), and makes the harness more generally useful for future problems that need multi-dimensional refinement.
Relation to other proposals
Dependency of #1916, which consolidates wave correctness and convergence tests.
num_modes_yandnum_modes_zare deferred until this extension lands.Beta Was this translation helpful? Give feedback.
All reactions