Template Function opensn::H5ReadAttribute

Function Documentation

template<typename T>
bool opensn::H5ReadAttribute(hid_t id, const std::string &name, T &value)

Read a scalar attribute.

Returns false if the attribute is missing, does not hold exactly one element, or cannot be read.