- changed status to invalid
`CCTKi_VarDataPtrI` should not be declared `pure`
Issue #2511
invalid
This declaration in cctki_GroupsOnGH.h
is wrong; it should not have the pure
attribute:
void *CCTKi_VarDataPtrI(const cGH *GH, int timelevel, int varindex) CCTK_ATTRIBUTE_PURE;
This function checks whether the caller has access to that grid variable and returns NULL
if not. It does not always return the same pointer.
Also, the variable pointer changes over time if the driver reallocates storage.
Comments (1)
-
reporter - Log in to comment
I was confused; a
pure
declaration is fine in this case.