I was looking at the documentation for PetscBagCreate()
, and it says that
The size of the A struct must be small enough to fit in a PetscInt; by default PetscInt is > 4 bytes. The warning about casting to a shorter length can be ignored below unless your A struct is too large.
I assume that this means that a pointer to the struct must be smaller than a PetscInt, the examples use structs that contain PetscInts as well as other things. That said, I'm under the impression that pointers on 64 bit machines can be larger than the 32 bits in a PetscInt.
What does this restriction on the size of the struct mean for users?
Can PetscBags be used on 64 bit systems?