Skip to content

Cookbook ​

Short recipes for specific tasks. The schemes, storage, AMR and diagnostics recipes are each one program in docs/examples/src/, with the recipe chosen on the command line. The code and output on each page are that program and what it printed when the documentation was built. The porting and performance pages are references, with code taken from the tests and the benchmarks.

PageRecipes
Schemeschoosing a scheme and its storage form; the largest strong-stability-preserving time step
Storageregisters from your own pool; the working precision of a build
Any ranka 1-D, 2-D or 3-D solver: the box and the stepper at the field's rank; a periodic field with no ghost cells
AMRrefluxing with stage_weight; where the ghost cells of a stage must come from
Diagnosticsthe step residual as a convergence monitor; contract checks; what happens on a request the stepper cannot honour
Porting from ADAMADAM's RK calls and their SELAH equivalents, call by call
Performancebenchmark discipline on a GPU; the paths that save memory traffic

GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT, at your choice