void
CellAccessorWrapper::set_vertex(const int i, PointWrapper &point_wrapper)
{
- AssertThrow(i < std::pow(2, dim),
- ExcVertexDoesNotExist(i, std::pow(2, dim)));
+ AssertThrow(i < static_cast<int>(Utilities::pow(2, dim)),
+ ExcVertexDoesNotExist(i, Utilities::pow(2, dim)));
if ((dim == 2) && (spacedim == 2))
internal::set_vertex<2, 2>(i, point_wrapper, cell_accessor);
else if ((dim == 2) && (spacedim == 3))
PointWrapper
CellAccessorWrapper::get_vertex(const int i) const
{
- AssertThrow(i < std::pow(2, dim),
- ExcVertexDoesNotExist(i, std::pow(2, dim)));
+ AssertThrow(i < static_cast<int>(Utilities::pow(2, dim)),
+ ExcVertexDoesNotExist(i, Utilities::pow(2, dim)));
if ((dim == 2) && (spacedim == 2))
return internal::get_vertex<2, 2>(i, cell_accessor);
else if ((dim == 2) && (spacedim == 3))
void
TriaAccessorWrapper::set_vertex(const int i, PointWrapper &point_wrapper)
{
- AssertThrow(i < std::pow(2, dim),
- ExcVertexDoesNotExist(i, std::pow(2, dim)));
+ AssertThrow(i < static_cast<int>(Utilities::pow(2, dim)),
+ ExcVertexDoesNotExist(i, Utilities::pow(2, dim)));
if ((dim == 2) && (spacedim == 2) && (structdim == 1))
internal::set_vertex<1, 2, 2>(i, point_wrapper, tria_accessor);
else if ((dim == 2) && (spacedim == 3) && (structdim == 1))
PointWrapper
TriaAccessorWrapper::get_vertex(const int i) const
{
- AssertThrow(i < std::pow(2, dim),
- ExcVertexDoesNotExist(i, std::pow(2, dim)));
+ AssertThrow(i < static_cast<int>(Utilities::pow(2, dim)),
+ ExcVertexDoesNotExist(i, Utilities::pow(2, dim)));
if ((dim == 2) && (spacedim == 2) && (structdim == 1))
return internal::get_vertex<1, 2, 2>(i, tria_accessor);
else if ((dim == 2) && (spacedim == 3) && (structdim == 1))