Skip to content

Library input reference ​

The sections below are read by the ADAM library itself, so every application built on it (FLUME, PRISM) reads them the same way. Each application adds its own sections: FLUME input reference, PRISM input reference. Where the two applications use a library key differently, the Used column says so.

Parsing rules ​

The input is an INI file read by FiNeR:

  • Section and key names are case-sensitive: CFL, not cfl; [IO], not [io]. When a key or section is duplicated, the first occurrence wins.

  • Comments. A line whose first non-blank character is ;, # or ! is a comment. After a value, only ; starts an inline comment.

  • Missing key, or a value that does not convert. FiNeR returns an error code and leaves the variable untouched, both when the key is absent and when its value does not convert to the key's type (a non-numeric value for a number, finer_option_t.F90). Most readers then stop the run (failed to load [section].(key)); the readers that ignore the error are marked no check below, and the variable keeps its declared default, or stays undefined when it has none. Integers are accepted for reals (1 is a valid real).

  • Optional keys with a default (Req. no, read through the library's ini_get, #80 P1): an absent key takes the default in the table; a key that is present but does not convert stops the run, like a required one.

  • An input may extend another (#80 P4): a key before the first section, extends = <file>, names a base input, read first; the including file's keys are then added onto it, replacing the value of every key both define and adding the others (sections included). The base may extend another in turn (up to 8 files; a file extending itself stops the run, so does a base file that does not exist). The path is relative to the including file's directory, unlike the manifest's [realm.N] ini. extends is not a key of the result: the unused-keys warning never lists it. Any input of any application may use it; the per-realm inputs of a forest typically do (realm 2 = realm 1 with its extent and its output names changed):

    ini
    ; realm_2.ini
    extends = realm_1.ini
    
    [IO]
    output_basename  = rmf_2realm_r2
    restart_basename = HF_fnl-restart_r2
    
    [grid]
    emin_x = 0.0
    emax_x = 0.06
  • Every error of a block at once. The parsers record a missing or malformed key and go on reading the keys of the same block (section), then stop with all of them (#80 P2): one error keeps the message failed to load [section].(key); several give N input errors: and one line each. A value outside its accepted set still stops at once, with the errors recorded so far.

  • Counts and lists are not stated (#80 F4, F5). A count key of enumerated sections ([amr] markers_number, [slices] slices_number, [solids] number, [initial_conditions] regions_number, the PRISM coil counts) defaults to the number of sections present, [<prefix>1] .. [<prefix>N], which must be numbered without gaps (a gap stops the run); stating it is still accepted. A list key ([cooling] temperatures, [eos] densities, [sinks] mass, ...) takes as many values as are written.

  • Keys set to their default, and the defaults taken (#80 F6, the --dump-defaults of the plan). With ADAM_REPORT_DEFAULTS=1 in the environment, rank 0 prints after the initialization of each realm one line per key read with a default: [ini-defaults] equal [section].(key) when the input sets it to its default at every read (the line can be deleted with no effect), [ini-defaults] taken [section].(key) = value when the input omits it. A multi-realm run appends (realm N). Keys read without a default, or by a parser that does not use the library's ini_get, are not listed. With ADAM_INIT_ONLY=1 it lists the defaults of an input without running it.

  • Keys nobody reads. After the initialization of each realm, rank 0 lists the keys of its input file that no parser has read (N input option(s) ... never read and one [section].(key) per line): a misspelled key, a key no longer used, or the keys of a feature switched off (the [slice_N] sections with slices_number = 0, the [weno] ROR keys, [field] nv, which the applications set themselves). No key is read after the initialization, so the list is final (#80 P5). [IO] unused_keys sets what happens: error (default) prints them as errors and stops the run; warn prints them as warnings and the run goes on (an old input, while you clean it). The environment variable ADAM_UNUSED_KEYS (warn or error), when set, overrides the key; the FLUME and PRISM regression harnesses set it to error, so a committed regression input cannot carry a dead key whatever the default. To sweep inputs without running them, ADAM_INIT_ONLY=1 stops every run right after the initialization (the list printed). It needs FiNeR with unused_options.

  • Logical keys. FiNeR reads the value when its first character is one of .tTfF (.true., T, true, .false., ...); any other value (yes, 1) is a conversion error, as above.

  • CRLF files (Windows line endings) read as LF ones on every compiler: FiNeR drops every CR before splitting the file into lines (FiNeR c55f8d3). Before that fix, nvfortran kept the CR at the end of every value and every FNL build stopped on a CRLF input at its first numeric key; a dependency fetched before 2026-10-26 needs fobis fetch --update.

  • Removed keys. FiNeR ignores keys nobody reads, so a removed key is not an error by itself. The lint src/tests/lint/check-removed-input-keys.sh (run at the top of the PRISM and FLUME regression sweeps) rejects, in the committed PRISM, FLUME and AMR test inputs: [fWLayer] C (replaced by width), [PIC] elliptic_correction (removed in #84 E3d; .true. stops the run) and the whole [linear-algebra] section (removed in #84 E4 with the legacy elliptic smoothers it configured).

Legend for the tables ​

  • Req.: yes means a missing key stops the run. cond. means it is required only under the stated condition. no means optional (the default applies). no check means the error is ignored; see the notes for what happens.
  • Used: who depends on the value. both, FLUME, PRISM, or neither (the key is read, so it must usually be present, but no application uses it).

[IO] ​

io_object%load_from_file. Each application adds keys of its own to this section: FLUME save_auxiliary_fields, PRISM save_fields, save_memory_status, save_curl_fields, save_divergence_fields and the seam div(B) monitor seam_divB_tol / seam_divB_error (PRISM input; in the input of another application they are unread keys). divergence_history_save, save_gradient_fields and save_laplacian_fields are no longer read (#80 P5): nothing ever used them.

KeyTypeReq.DefaultAccepted / invalidUsedMeaning
output_basenamestringyes—any path prefixbothPrefix of every output file (fields, histories, slices).
it_saveintyes—<= 0 disables field savesbothField (XH5F) save cadence in steps.
restartlogicalno.false.logicalboth.true.: skip the initial conditions and load the restart_basename restart files.
restart_basenamestringyes (even when restart = .false.)—path prefixbothBasename of the restart files, read and written.
restart_saveintyes—<= 0 disablesbothRestart save cadence in steps.
residuals_saveintyes—<= 0 disablesbothResidual L2-norm history cadence (<output_basename>-residuals.dat).
save_residual_fieldslogicalno.false.logicalbothAlso write the residuals dq_* into the field files.
unused_keysstringnoerrorwarn, error; other values are fatal. The environment variable ADAM_UNUSED_KEYS overrides it.bothWhat the keys no parser read do (parsing rules): warnings, or an error that stops the run (#80 P5).

Output files. The library writes the fields as one <output_basename>-<it:9 digits>-procNNNNNN.h5 per rank plus one .xdmf (XH5F, ghost cells included), the restart files as <restart_basename>.time, .tnd and -procNNNNNN.fbd, and the slices as raw MPI-IO .mat files. There is no output-format key.


[grid] ​

grid_object%load_from_ini_file. Every key is required.

KeyTypeReq.Accepted / checksUsedMeaning
ni, nj, nkintyesno check of >= 1. The applications add parity and width rules for AMR (see their pages).bothCells per block along i, j, k, ghost cells excluded.
ngcintyeseach application checks it against its stencils: >= [weno] S, >= fdv_order/2, and more (see their pages)bothGhost cells per side.
emin_x, emin_y, emin_zrealyesno checkbothDomain minimum corner. Divided by L0 in a PRISM non-dimensional model.
emax_x, emax_y, emax_zrealyesno check (emax > emin is not validated)bothDomain maximum corner.
null_x, null_y, null_zlogicalno (default .false.)logicalbothNull (inactive) direction: excluded from the fluxes and the time step.

[amr] ​

Read in four places: the grid reads ratio, the tree the refinement shape, adam_object the seam fills, amr_object the cadence and the markers.

KeyTypeReq.DefaultAccepted / invalidUsedMeaning
ratiointyes—2 (binary), 4 (quadtree), 8 (octree); any other value is fatal.bothRefinement ratio of the tree.
max_levelintyes—Refinements beyond it are cancelled silently.bothMaximum refinement level.
iu_ref_levelsintyes—<= 0: nonebothUniform refinement levels applied at initialisation, before the initial conditions. During the AMR updates the blocks are spread over the ranks by whole sibling families (ratio blocks each), in contiguous Morton runs that minimise the busiest rank's block count (#123), so a grid with fewer families than ranks leaves ranks with no block; a static grid is then balanced by block count (balance_static).
i_prune, j_prune, k_prune, l_pruneintno-1see the notes belowbothPruning of a "simple initial forest". No application calls prune, but the values enter the neighbour/boundary search: if all four are >= 0 the tree sizes its search box 2**(l-l_prune)*(ijk_prune+1). Keep l_prune negative (the default). i/j/k_prune are read only when l_prune >= 0 (#80): with a negative l_prune they take no effect, and an input that sets them reports them unread.
frequencyintno0>= 0FLUMERuntime regrid cadence (#74): 0 no runtime regridding, n > 0 regrid after every n-th step. PRISM reads it and refines at initialization only.
balance_staticlogicalno.true..true., .false.bothAfter the initial AMR, balance a grid that is never regridded at runtime (FLUME: frequency = 0; PRISM: always) by block count: the Morton-ordered blocks are cut into floor or ceiling of blocks/ranks per rank, sibling families split where the cut falls in them, no rank empty when there are at least as many blocks as ranks (#123). The S4c grid of #121, 120 blocks on 8 ranks, goes from 20/13/19/17/13/19/19/0 (the greedy walk before the min-max split of the sibling sets; busiest 18 with it) to 15 each. .false. keeps the family-preserving layout of the AMR updates. Runtime AMR always keeps the families whole: derefinement averages a parent's children on one rank (tree%derefine stops if it finds a family split).
itersintno1anybothMaximum marker sweeps per AMR update (it stops early when the grid is stable); a sweep refines or coarsens one level.
markers_numberintnothe number of [amr_marker_N] sections>= 0bothNumber of [amr_marker_N] sections: omit it, the sections are counted (#80 F5).
memory_fractionrealno0.85in (0, 1]; other values are fatal. The environment variable ADAM_MEMORY_FRACTION, when set, overrides it (#80 P5).bothFraction of the memory a rank may use (host RAM per rank, or the device) that sizes its block pool, allocated whole at initialization. The regression harnesses set ADAM_MEMORY_FRACTION=0.05: a tiny case does not pay for a pool that fills the node.
regrid_prolongationstringnolinear (FLUME: conservative)linear, conservative, conservative-state; any other value is fatalFLUMEHow a refined block's children are filled from the parent at a runtime regrid; FLUME's input reference describes the three.
seam_ghost_fillstringnotricubicinjection, restriction-compatible, tricubic, quintic, weno6, quintic-mp; any other value is fatal. The 6-point fills (quintic, weno6, quintic-mp) need at least 6 cells per refined axis in every block (fatal otherwise); on a coupling = refined forest seam both realms must declare the same value.bothCoarse-to-fine ghost fill at 2:1 AMR seams (#68 D1, D2). tricubic: the tensor 4-point Lagrange interpolation, exact for per-direction degree 3. quintic: the 6-point one, exact for degree 5. weno6: a WENO-Z combination of the cubics of the 4-point sub-stencils, dropping those that hold a jump. quintic-mp: the quintic clamped to a monotonicity-preserving bound. With every regime, an app that sets maps%seam_density_var (FLUME) has the density and the velocity of a fine ghost clamped to a monotonicity-preserving bound of the coarse cells around it, and a ghost whose clamped density is below 0.1 times its coarse cell's take that cell's state (#101).
seam_restrictionstringnomeanmean, lagrange6, weno6; any other value is fatal. lagrange6 and weno6 need at least 6 cells per refined axis in every block (fatal otherwise); on a coupling = refined forest seam both realms must declare the same value.bothFine-to-coarse ghost fill at 2:1 AMR seams (#68 C1–C3). mean: the mean of the fine cells, second order. lagrange6: the tensor 6-point Lagrange interpolation to the coarse centre, exact for degree 5. weno6: a WENO-Z combination of the 4-point cubics, falling back to the mean across a jump.

ratio, max_level and iu_ref_levels are required and the four prune indexes default to -1: a missing required key, or any unreadable value, stops the run with failed to load [amr].(<key>). Before #80 the tree reader ignored the error and passed one buffer to every key, so a missing key silently took the value of the key read before it.

When the markers act. At initialization, during the [initial_conditions] amr_iterations passes (each pass sets the initial condition and runs one AMR update of up to iters sweeps), in both applications; in FLUME also at the runtime regrids (frequency > 0).

[amr_marker_N] (N = 1..markers_number) ​

amr_object%load_from_file reads the keys a mode needs; the applications implement different modes.

ModeFLUMEPRISM
1 geometric (AMR_GEO)solid and primitive-box; stl fatalprimitive-box; solid does nothing; stl fatal
2 gradient (AMR_GRAD)yesdoes nothing (the branch is empty)
3 total variation (AMR_TV)fatal at initialisation ("not implemented in FLUME")yes: the total variation of the coils' current density
4 Löhner (AMR_LOHNER)yes, at runtime regrids only (it reads ghost cells the initial AMR does not fill)does nothing (no branch)
5 Jeans length (AMR_JEANS)yes, needs [gravity] self_gravity = .true.does nothing (no branch)
6 registered criterion (AMR_USER)yes, at runtime regrids only: the criterion the program registered under name (#110); an unregistered name is fatal at the first regriddoes nothing (no branch)
7 local Kolmogorov resolution (AMR_KOLMOGOROV)yes, needs a viscosity ([physics] viscosity or reynolds; fatal otherwise); at the initial AMR it refines only (#133)does nothing (no branch)

An unknown mode reads no further keys and stops nothing in the library; FLUME stops on it at the first AMR pass.

KeyTypeReq.Accepted / invalidModesMeaning
modeintyessee the table aboveallMarker kind.
delta_typestringyes (all modes)x, y, z, max (the maximum over the active directions); other values are fatal at marking in FLUME, and in PRISM's mode-3 marker leave the compared spacing undefined (no check)1 (solid), 2, 3, 5 (read, unused, by 4, 6, 7)Which block spacing is compared with delta_fine/delta_coarse.
delta_finerealyes (all modes)no check1 (solid), 2, 3Admissible spacing where the criterion fires.
delta_coarserealyes (all modes)no check1 (solid), 2, 3Admissible spacing elsewhere.
geo_typestringmode 1solid, primitive-box, stl; other values are fatal at load1Geometric marker kind.
solidintmode 1 + solid1..[solids] number, otherwise fatal at marking1Refine the blocks crossed by that solid's surface.
box_xmin, box_ymin, box_zmin, box_xmax, box_ymax, box_zmaxrealmode 1 + primitive-boxno check1Box: the blocks whose centroid lies inside it are refined.
target_levelintmode 1 + primitive-boxno check (capped by max_level)1Refine the in-box blocks until they reach this level.
stl_filenamestringmode 1 + stl—1STL surface (both applications refuse stl).
fieldintmodes 2, 3, 41 = conservative state, 2 = auxiliary fields; other values are fatal at marking2, 4Array holding the marker variable (PRISM's mode 3 reads it, unused).
varintmodes 2, 3, 4a variable index of that array, otherwise fatal at marking2, 4Marker variable.
tolrealmodes 2, 3no check2, 3Threshold: the gradient magnitude (mode 2) or the total variation (mode 3) above which the block gets delta_fine.
refine_tol, derefine_tolrealmodes 4, 7mode 4: 0 <= derefine_tol < refine_tol <= 1; mode 7: 0 < derefine_tol < refine_tol / 2 (no upper cap); otherwise fatal4, 7Thresholds of the block's largest estimator: refine above refine_tol, coarsen below derefine_tol, keep between.
epsilonrealno (mode 4)>= 0, default 0.014Noise filter relative to the variable.
floorrealno (mode 4)>= 0, default 04Absolute noise filter, for a variable that vanishes in quiet regions.
bufferintno (mode 4)>= 0, default 1 (FLUME: also <= ngc - 1)4Ghost layers the estimator reads.
jeans_cellsrealno (mode 5)> 0, default 85Refine where some interior cell resolves its Jeans length with fewer cells.
namestringmode 6the name a criterion was registered under; empty is fatal at load, unregistered at initialisation6The registered criterion (adam_amr_criterion_object).
jeans_cells_derefinerealno (mode 5)> jeans_cells, default 2 * jeans_cells; otherwise fatal5Coarsen where every interior cell has more cells per Jeans length; keep between.

The Kolmogorov marker (mode 7). On every interior cell of a block it evaluates the ratio of the spacing to the local Kolmogorov length,

r=hη,η=(ν3ε)1/4,ε=2νSd:Sd,ν=μ(T)ρ,h=(∏d activeΔxd)1/n,

so r=h(2Sd:Sd)1/4/ν1/2, with Sd=S−13tr(S)I the deviatoric part of the strain rate S=(∇u+∇uT)/2 (the trace over the three components), μ(T) the viscosity law of the run (constant, power law or Sutherland; molecular only, an SGS eddy viscosity is not counted) and h the geometric mean of the spacings over the n active axes: a null axis has no resolution to measure, so its extent does not enter. The velocity gradient is the gradient marker's stencil: second-order centred differences, across the faces between blocks too (one ghost layer), first-order one-sided at the faces on the realm boundary (physical or seam), whose ghosts it never reads; a linear field is differentiated exactly. A block takes its largest r: refined above refine_tol, coarsened below derefine_tol, kept between. r is proportional to h, so it halves across one level: the band must be wider than a factor 2 (derefine_tol < refine_tol / 2), or a block coarsened at one regrid would vote to refine at the next. In a pure shear u=U(y), r2=h2|U′|/ν. In wall units, at a no-slip wall (ε+=1) r=h+; in the log layer (ε+≈1/(κy+)) r=h+/(κy+)1/4, a slow relaxation away from the wall: unlike a vorticity or Q threshold, r has an absolute meaning (a resolution) and sees the wall shear layer, where Q vanishes. Values of order 1 to a few resolve the dissipative scales (on the turbulent channel grid of #133, Δx+=10.8, Δy+=2.3, Δz+=7.2, the log-law estimate gives r≈5.6 at the walls and 1.8 at the centreline). Unit test KM-1 (test-flume-kolmogorov-marker-gnu) checks the closed forms, regression case kolmogorov-channel the regrids.

FLUME's page lists its variable indices and the runtime AMR setup.


[field] ​

KeyTypeReq.UsedMeaning
nvintnot readneitherBoth applications pass nv from their physics, so field_object never reads this key; it can be omitted.

[runge_kutta] ​

stepper_object%load_from_file (the integrator on SELAH, #132); each application also reads scheme first, to size the per-block memory budget.

KeyTypeReq.Accepted / invalidUsedMeaning
schemestringyessee the table below; an unknown name is fatalbothTime integrator. It also sizes the per-block memory budget (stage fields).
NameKindStored stage fieldsSELAH scheme, form (registers)FLUMEPRISM
runge-kutta-1low-storage, forward Euler1euler, two-register (2)acceptedEM: accepted; PIC, PML, 2:1 faces: refused
runge-kutta-2low-storage TVD, 2nd order1ssp-22, two-register (2)acceptedas above
runge-kutta-3low-storage TVD, 3rd order1ssp-33, two-register (2)acceptedas above
runge-kutta-ssp-11SSP, forward Euler1euler, Butcher (2)acceptedEM and PML: accepted; PIC: refused
runge-kutta-ssp-22SSP, 2nd order2ssp-22, Butcher (3)acceptedaccepted
runge-kutta-ssp-33SSP, 3rd order3ssp-33, Butcher (4)acceptedaccepted
runge-kutta-ssp-54SSP, 5 stages, 4th order5ssp-54, Butcher (6)acceptedaccepted
runge-kutta-yoshidasymplectic, 4th order, 4 stages0yoshida-4, splitting (1)refusedEM on CPU: accepted; FNL, PIC, PML, 2:1 faces: refused

The stored stage fields were those of ADAM's own integrator (adam_rk_object, deleted in phase 6 of #132); FLUME, PRISM and RIPPLE allocate SELAH's registers instead, the residual register included (stepper_stored_fields): one block field (of nv variables) more than the stage fields, whatever the scheme (Yoshida: 1 instead of 0). [diagnostics] divb_flux borrows two of them between steps, so it is accepted with every scheme (#128 D1).

The staged path of the forest (any 2:1 AMR face, any multi-realm forest) needs an SSP scheme in both applications. In a forest manifest, seams with coupling_cadence = stage_coincident require both realms to use the same scheme (fatal otherwise).


[weno] ​

weno_object%load_from_file, read on demand (#80 P5): FLUME and RIPPLE always; PRISM only with [numerics] scheme_space = weno, a CPU path (the FNL backend refuses it). With another PRISM scheme the section is not read, so its keys are unread keys.

KeyTypeReq.DefaultAccepted / invalidUsedMeaning
schemestringyes—see the table below; an unknown name is fatalbothWENO order (stencil half-width S). ngc >= S is checked by FLUME always, by PRISM with scheme_space = weno.
weightsstringnojsjs (Jiang–Shu, absolute ε), si (scale-invariant); an unknown value is fatalbothNonlinear weights (PRISM uses them with scheme_space = weno).

The order-reduction keys (ror_number, ror_scheme_N, ror_threshold, ror_vars_number, ror_ivar_N, enable_ror_stats) and the immersed-boundary order reduction (ib_reduction_extent, ib_reduced_order) are no longer read (#80): nothing in FLUME, PRISM or RIPPLE used them, and their state left with ADAM's WENO kernels (#139 S6). An input that sets them reports them unread. The kernels the scheme selects are SETH's (seth_weno<2S-1>_js, regulariser ε=10−6 absolute, SETH_WENO_JS_EPS).

NameSOrderKind
weno-u-1, weno-u-3, weno-u-5, weno-u-7, weno-u-91–51, 3, 5, 7, 9upwind
weno-c-2, weno-c-4, weno-c-6, weno-c-81–42, 4, 6, 8centred: refused at initialization in every application (#139 D6, until an application calls SETH's centred kernels)

[fdv] ​

realm_object reads it: the finite-difference/finite-volume operators (gradient, divergence, curl, Laplacian) of adam_fdv_operators_library. Read on demand (#80 P5): PRISM always, FLUME only for an MHD model (its div(B) diagnostic and derived fields), RIPPLE never; where it is not read, its keys are unread keys.

KeyTypeReq.Accepted / invalidUsedMeaning
fdv_schemestringyesFD/fd/Fd/fD or FV/fv/Fv/fV; other values are fatalPRISMOperator family. PRISM's curl, divergence and coil stamping follow it; FLUME's div(B) diagnostic is always centred FD.
fdv_orderintyeseven, 2 to 10 (half-stencil fdv_order/2 <= 5); no range check at load. PRISM checks fdv_order/2 <= ngc at initialization; FLUME checks it (and <= 3 on FNL) at the first div(B) diagnostic of an MHD run.bothOrder of the centred operators. PRISM: its whole spatial operator and the t0 elliptic solves (which accept 2, 4, 6, 8: an order 10 stops at the first solve). FLUME: the div(B) diagnostic of MHD runs only.

[solids] and [solid_N] ​

ib_object: analytical immersed solids. FLUME applies them (Euler only); PRISM loads them and passes their distance function to its Runge-Kutta stages, and no committed PRISM input uses them.

[solids] ​

KeyTypeReq.DefaultMeaning
numberintnothe number of [solid_N] sectionsNumber of [solid_N] sections: omit it, the sections are counted (#80 F5). 0: no immersed boundary.
n_eikonalintno2Eikonal extrapolation sweeps per residual evaluation, filling the solid cells. Read only when there are solids (#80).

[solid_N] (N = 1..number) ​

KeyTypeReq.Accepted / invalidMeaning
namestringyesanyLabel (printed only).
bc_typeintyes1 viscous (all momentum negated inside the solid), 2 inviscid (normal momentum reflected); any other value applies no inversion, silentlyWall treatment of the solid-cell state.
definitionstringyesanalytical_sphere, analytical_circle, analytical_rectangle; any other value (file.off included, never implemented) is fatal at loadGeometry kind.
sphere_center_x, sphere_center_y, sphere_center_z, sphere_radiusrealanalytical_sphereno checkSphere.
circle_center_x, circle_center_y, circle_center_z, circle_radiusrealanalytical_circleno checkInfinite cylinder.
circle_axischaranalytical_circlex, y, z; other values are fatal at loadCylinder axis.
rectangle_center_x, rectangle_center_y, rectangle_center_z, rectangle_edge_1, rectangle_edge_2realanalytical_rectangleno checkInfinite rectangular prism: rectangle_edge_1, rectangle_edge_2 are its side lengths along the first and the second of the two axes normal to rectangle_axis, in x, y, z order (axis x: y, z; y: x, z; z: x, y). Its distance function is the exact signed distance from the boundary, positive inside like the sphere's and the circle's (#143: before the fix it took the farther edge inside and was wrong beside the faces).
rectangle_axischaranalytical_rectanglex, y, z; other values are fatal at loadPrism axis.

[slices] and [slice_N] ​

slices_object: the state sampled on a lattice of points and written as raw MPI-IO .mat files, <output_basename>-slice_NN-<it:9>.mat. Both applications write them.

[slices] ​

KeyTypeReq.Accepted / invalidMeaning
slices_numberintno (default: the number of [slice_N] sections)>= 0, negative is fatalNumber of [slice_N] sections: omit it, the sections are counted (#80 F5). 0: no slices.

[slice_N] (N = 1..slices_number) ​

Every key is required (fatal when missing) and checked at initialization.

KeyTypeAccepted / invalidMeaning
itypestringtrilinear, inverse_distance; other values are fatalInterpolation from the cells to the slice points.
n_saveint>= 1; 0 or negative is fatalSave cadence in steps; the last step is also saved.
ni, nj, nkint>= 1, otherwise fatalPoints of the lattice, cell-centred on the box.
emin_x, emin_y, emin_z, emax_x, emax_y, emax_zrealemin <= emax, and every point inside the realm's domain, otherwise fatalBox sampled by the lattice, in the grid's units (divided by L0 in a PRISM non-dimensional model).

Forest manifest (multi-realm) ​

adam_forest_manifest reads it, for both applications: a separate INI whose [realm.N] entries point at full realm inputs (each with the sections above and the application's own; one realm input may extend another, extends = <file>, and list only the keys it changes). If the file passed to the executable has a [forest] section with realms_number >= 1, it is a manifest; otherwise it is itself a single-realm input. Manifest errors use Fortran error stop, not the library's error_stop.

SectionKeyTypeReq.Accepted / invalidMeaning
[forest]realms_numberintyes>= 1, otherwise fatal. Its presence with >= 1 makes the file a manifest.Number of realms.
[realm.N] (N = 1..realms_number)inistring (≤ 256 chars)yesused verbatim: it resolves against the process working directory, not the manifest's directoryRealm input.
[forest.topology]inter_realm_faces_numberintnodefault 0 (no coupling)Number of glued faces.
[forest.topology.face_N]realm_a, realm_bintyes1..realms_number, otherwise fatalRealms on each side of the seam.
face_a, face_bstringyes+x -x +y -y +z -z, also upper case and the suffix forms x+, X-, …; other values are fatalGlued faces.
couplingstringnomirror (default), refined, auto, periodic, interpolate (lower, Capitalised or UPPER case); other values are fatal. periodic and interpolate are reserved: the forest stops at setup on them.mirror joins seam cells of the same size (fatal otherwise). refined joins a 2:1 jump (#52): the seam cells must differ by exactly 2 along every axis the trees refine and be equal along a null one (a quadtree's z), both realms of the same tree kind ([amr] ratio), the seam normal to a refined axis (#71). auto (#110) is decided at every topology build: either of the two when each side holds one cell size, else face by face (mixed levels along the seam: each face joins equal cells or a 2:1 jump, either realm the fine one), so runtime AMR may change it; it requires, whatever side is fine, the same block cell counts along the seam, the same seam_ghost_fill and seam_restriction, and even block cell counts along the refined axes in both realms (a pair that turns 2:1 also needs the refined conditions). With runtime AMR the forest keeps the seam cells equal (mirror), at the declared 2:1 jump (refined), one level per side for both, or, for auto, face by face equal or in a ratio of 2 between neighbouring leaves (edges and corners included): cell sizes, not levels, since each realm counts levels from its own root.
coupling_cadencestringnoend_of_step (default, α) or stage_coincident (β), in the same three case forms; other values are fatal. β requires both realms to have equal [runge_kutta] scheme, equal nv and equal stages per step (fatal otherwise). Conflicting cadences between the same realm pair are fatal.Seam fill once per step (α) or at every Runge-Kutta stage (β). A 1:1 same-resolution seam needs β to stay divergence-free (#31).

The forest concepts and the forest cookbook describe the multi-realm machinery.