Smoke Test
The smoke test is a tiny checkerboard \(S_N\) run intended to confirm that a local CPU build can parse configs, read a mesh, run the solver, and write logs/output. It does not validate scientific accuracy beyond basic sanity checks.
Build and run
This path requires the CPU build dependencies from Installation, including BLAS, LAPACK, VTK, OpenMP, and Python 3.10+ for the checker.
cmake -S . -B build_omp -DCMAKE_BUILD_TYPE=Release -DBUILD_MPI=OFF -DBUILD_CUDA_HPC=OFF -DBUILD_ML=OFF
cmake --build build_omp -j
./build_omp/KiT-RT examples/configs/smoke_test.cfg
python tools/check_smoke_output.py examples/result/smoke_test
Expected output
Runtime should be short on a laptop-scale CPU build.
examples/result/smoke_test/should contain at least one.vtkor.vtufile.examples/result/smoke_test/logs/should contain at least one.csvlog file.The checker should report
PASSwith a finite, non-negative mass.No checked output file should contain a
nanmarker.
Common failures
MESH_FILEnot found: run from the repository root and useexamples/configs/smoke_test.cfgunchanged first.Missing BLAS/LAPACK/VTK/OpenMP libraries: install the development packages or use a container build.
No CSV log: inspect solver stderr/stdout; the run likely failed before history output was written.