Skip to content

WIP id type = int becomes quickly too small

Andreas Dedner requested to merge bugfix/idTypeTooSmall into master

The assert in dune/alugrid/3d/indexsets.hh:504 fails for me: alugrid_assert ( creatorNumber < nEntitiesFactor[creatorCodim] * nElements ); with for example nEntitiesFactor[creatorCodim]=2 and const typename IdType::IntegerType nElements = std::pow(nChildren,level); = 5^13 = 1220703125 The compare in the assert is then done after converting to int - which causes problems

The question is if unsigned int is big enough or if we want unsigned long?

Edited by Andreas Dedner

Merge request reports

Loading