15 output_field_name = name;
28 out_stream << data_[idx] ;
36 out_stream << d <<
" ";
44 ASSERT(
false).error(
"Unsupported output of the mesh data to YAML format.");
void print_all(std::ostream &out_stream) override
Prints the whole data vector into stream.
#define ASSERT_LE(a, b)
Definition of comparative assert macro (Less or Equal)
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
MeshData(std::string name, NumCompValueType n_elem=N_SCALAR)
Constructor. name is the possible name of the output vector.
T & operator[](unsigned int i)
Access i-th element in the data vector.
void print(std::ostream &out_stream, unsigned int idx) override
Prints idx element of data vector into stream.
void print_all_yaml(std::ostream &out_stream, unsigned int precision) override
Prints the whole data vector into stream. UNSUPPORTED.