• Andreas Dedner's avatar
    id type = int becomes quickly too small, e.g., assert in · d4912038
    Andreas Dedner authored
    dune/alugrid/3d/indexsets.hh:504 fails
    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?
    d4912038
Name
Last commit
Last update
cmake/modules Loading commit data...
doc Loading commit data...
dune Loading commit data...
examples Loading commit data...
lib Loading commit data...
misc Loading commit data...
python Loading commit data...
scripts Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
INSTALL Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
config.h.cmake Loading commit data...
dune-alugrid.pc.in Loading commit data...
dune.module Loading commit data...