Skip to content

Commit 1fe7465

Browse files
committed
MeshBase::get_info(): Print all Orders using Utility::enum_to_string()
Previously, we cast the final entry to an unsigned int before printing, which gave inconsistent looking results like the following: Mesh Information: elem_dimensions()={1, 3} elem_default_orders()={FIRST, 2}
1 parent b23beaf commit 1fe7465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mesh/mesh_base.C

+1-1
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ std::string MeshBase::get_info(const unsigned int verbosity /* = 0 */, const boo
10811081
std::ostream_iterator<std::string>(oss, ", "),
10821082
[](Order o)
10831083
{ return Utility::enum_to_string<Order>(o); });
1084-
oss << cast_int<unsigned int>(*_elem_default_orders.rbegin());
1084+
oss << Utility::enum_to_string<Order>(*_elem_default_orders.rbegin());
10851085
oss << "}\n";
10861086
}
10871087

0 commit comments

Comments
 (0)