nan_check
This page contains a full reference of all parameters available for the nan_check module. At the bottom of the page you can find an example parameter block that can be used in your parameter file.
nan_check
Periodic sanity check that scans evolved variables (cell-centered state, auxiliary, and staggered) for NaN values, with a configurable action when any are found.
Name:
enabledType:
bool
Default:
False
Description:
Master switch. When false, no scans are performed.
Name:
check_before_first_stepType:
bool
Default:
True
Description:
Run a scan once before the evolution loop begins, after initial data has been set and before the first timestep. Useful for catching bad initial data.
Name:
check_everyType:
int
Default:
0
Range:
[0,*)
Description:
Iteration interval between scans during the evolution loop. 0 disables periodic in-loop scans (the before-first-step scan is still controlled by check_before_first_step).
Name:
actionType:
keyword
Default:
abort
Range:
warn, terminate, abort
Description:
What to do when NaNs are detected. “warn” prints a warning and continues. “terminate” requests a clean termination (the loop exits after the current iteration, output and checkpointing run normally). “abort” calls ERROR(), which throws and aborts the run with a backtrace.