18 std::string
const& name,
unsigned const num_comp)
22 auto& prop_vec = *it->second;
24 if (num_comp_mesh ==
static_cast<int>(num_comp))
30 "The requested property '{}' has {} components, but the one "
31 "present in the mesh has {} components.",
32 name, num_comp, num_comp_mesh);
35 auto const name_in_mesh = name +
"_avg";
43 OGS_FATAL(
"The cell property '{}' could not be added to the mesh.",
50 "Internal logic error. Something very bad happened. The cell "
51 "property '{}' was not added to the list of cell averages to "
52 "compute. There is some very strange inconsistency in the "
53 "code. Trouble ahead!",
int getNumberOfGlobalComponents() const
PropertyVector< T > * getOrCreateMeshProperty(Mesh &mesh, std::string const &property_name, MeshItemType const item_type, int const number_of_components)
MeshLib::Mesh const & mesh_
MeshLib::PropertyVector< double > & getOrCreatePropertyVector(std::string const &name, unsigned const num_comp)
std::map< std::string, MeshLib::PropertyVector< double > * > cell_averages_