Data quality checks

This commit is contained in:
shahramn 2024-09-19 13:11:09 +01:00
parent 96975b5156
commit aa27ff9825
1 changed files with 4 additions and 0 deletions

View File

@ -244,6 +244,10 @@ void grib_context_set_print_proc(grib_context* c, grib_print_proc p)
void grib_context_set_data_quality_checks(grib_context* c, int val)
{
c = c ? c : grib_context_get_default();
// If val == 1, failure results in an error
// If val == 2, failure results in a warning
Assert(val == 0 || val == 1 || val == 2);
c->grib_data_quality_checks = val;
}