unsigned int used in MeshConnectivity

Issue #9 invalid
Anders Logg (Chalmers) created an issue

unsigned int is still used in the MeshConnectivity class. Is there a particular reason it hasn't been changed to site_t?

Comments (5)

  1. Prof Garth Wells

    It was changed back to unsigned int to save memory. It only involves local (process) indices, which will not exceed the limit of 32-bit integers.

  2. Anders Logg (Chalmers) reporter

    So the rule is: use std::size_t everywhere, except for big local data structures.

  3. Prof Garth Wells

    More-or-less. More precisely: use std::size_t everywhere, except for big local data structures that will not hold values greater than a 32 bit integer.

    For example, anything using a global mesh entity index should be std::size_t.

  4. Log in to comment