`CCTKi_VarDataPtrI` should not be declared `pure`

Create issue
Issue #2511 invalid
Erik Schnetter created an issue

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)

  1. Log in to comment