Skip to content

C++ and Python types of YaspGrid inconsistent

When I create a YaspGrid from python, e.g. in the following way

domain = cartesianDomain([0,0],[1,1],[gridSize,gridSize])
grid = yaspGrid(domain, dimgrid=2)

the exact C++ type is Dune::YaspGrid<2, Dune::EquidistantOffsetCoordinates<double, 2>>, where as YaspGrid<2> corresponds to Dune::YaspGrid<2, Dune::EquidistantCoordinates<double, 2>>`.

This is really surprising when trying to use a python generated YaspGrid in C++.