Runaway (diverging) computation detection. More...
#include "cs_defs.h"#include <assert.h>#include <math.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bft_mem.h"#include "bft_printf.h"#include "cs_base.h"#include "cs_field.h"#include "cs_log.h"#include "cs_math.h"#include "cs_mesh_location.h"#include "cs_parall.h"#include "cs_runaway_check.h"Functions | |
| int | cs_runaway_check (void) |
| Check that defined field bounds are not exceeded. | |
| void | cs_runaway_check_define_field_max (int f_id, cs_real_t max_allowed) |
| Define maximum value for a field, beyon which computation is aborted. | |
| void | cs_runaway_check_finalize (void) |
| Check that defined field bounds are not exceeded. | |
Runaway (diverging) computation detection.
| int cs_runaway_check | ( | void | ) |
Check that defined field bounds are not exceeded.
| void cs_runaway_check_define_field_max | ( | int | f_id, |
| cs_real_t | max_allowed ) |
Define maximum value for a field, beyon which computation is aborted.
Currently, only one field is handled, so calling this multiple times replaced the previous setting. Using a negative field id removes this check.
| void cs_runaway_check_finalize | ( | void | ) |
Check that defined field bounds are not exceeded.