Skip to content

Checkers

Checkers are analysis operators that inspect the simulation state without modifying it. They run in the checker block, at the end of the simulation, and are mainly used for regression testing (ctest). The default checker block is:

1
2
3
4
5
6
checker:
  - simulation_state  ## required if the user uses check_macro_quantities
  - checker_op

checker_op:
  - message: "Regression tests are not defined."

A regression deck overrides checker_op.

check_macro_quantities

Description

Checks the macroscopic quantities (sum of the densities, minimum and maximum velocity norm) against user-defined bounds, and aborts the simulation (MPI_Abort on all ranks) if any check fails. Otherwise it prints Test Pass..

YAML syntax

1
2
3
4
5
6
checker_op:
  - check_macro_quantities:
     density: 27900   # 30 x 30 x 31 nodes
     tol: 1e-8
     vmin: 0.0
     vmax: 1.00001e-03
Slot Type Default Description
density double optional expected sum of the densities (requires tol)
tol double optional absolute tolerance on the sum of the densities
vmin double 0 minimal velocity norm allowed (lattice units)
vmax double optional maximal velocity norm allowed (lattice units)

Warning

density without tol is an error. The velocity bounds are compared with the lattice velocities of simulation_state.