Commit d00dea48 authored by Michaël Sghaïer's avatar Michaël Sghaïer
Browse files

[Bugfix] cast Grid::dimension into int to avoid ambiguous call function

parent 0504800d
......@@ -160,7 +160,7 @@ namespace Dune
if( (buf.ndim != 2) || (buf.shape[ 1 ] != size) )
throw std::invalid_argument( "simplices array must be of shape (*, " + std::to_string( size ) + ")" );
GeometryType type( GeometryType::cube, Grid::dimension );
std::vector< unsigned int > vertices( pow(2,Grid::dimension) );
std::vector< unsigned int > vertices( pow(2, static_cast<int>(Grid::dimension)) );
for( std::size_t i = 0; i < buf.shape[ 0 ]; ++i )
{
const std::size_t offset = i * (buf.strides[ 0 ] / sizeof( int ));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment