#2511: `CCTKi_VarDataPtrI` should not be declared `pure`
Reporter:Erik Schnetter
Status:new
Milestone:
Version:development version
Type:bug
Priority:minor
Component:Cactus

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.

‌

--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2511/cctki_vardataptri-should-not-be-declared