Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ check_for_missing_values()

static void pism::io::check_for_missing_values ( const File file,
const std::string &  variable_name,
double  tolerance,
const double buffer,
size_t  buffer_length 
)
static

Check if some values in buffer match the _FillValue attribute and stop with an error message if such values are found.

Definition at line 442 of file io_helpers.cc.

References pism::RuntimeError::formatted(), pism::k, pism::File::name(), PISM_ERROR_LOCATION, and pism::File::read_double_attribute().

Referenced by read_distributed_array().