Skip to content
Snippets Groups Projects
Commit f8a48596 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MatL] Add a cast to int for material ids size.

Fixes a warning.
parent 63a48754
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ PorousMediaProperties createPorousMediaProperties(
int const max_material_id =
*std::max_element(material_ids.cbegin(), material_ids.cend());
if (max_material_id > mat_ids.size() - 1)
if (max_material_id > static_cast<int>(mat_ids.size() - 1))
OGS_FATAL(
"The maximum value of MaterialIDs in mesh is %d. As the "
"given number of porous media definitions in the project "
......@@ -97,7 +97,7 @@ PorousMediaProperties createPorousMediaProperties(
"(index starts with zero).",
max_material_id, mat_ids.size(), max_material_id - 1);
if (max_material_id < mat_ids.size() - 1)
if (max_material_id < static_cast<int>(mat_ids.size() - 1))
WARN(
"There are %d porous medium definitions in the project file but "
"only %d different values in the MaterialIDs vector/data_array in "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment