unsigned int used in MeshConnectivity
Issue #9
invalid
unsigned int is still used in the MeshConnectivity class. Is there a particular reason it hasn't been changed to site_t?
Comments (5)
-
-
- changed status to invalid
-
reporter On Tue, Apr 16, 2013 at 06:43:55PM -0000, Garth Wells wrote:
ok.
-- Anders
-
reporter So the rule is: use std::size_t everywhere, except for big local data structures.
-
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.
- Log in to comment
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.