(I write this second question in different message so it can be answered separately)
Hello,
when asking for a vector variable index with CCTK_VarIndex, it correctly returns an increasing index for every variable component, for example:
CCTK_VarIndex (example_gf[0]) --> 180
CCTK_VarIndex (example_gf[1]) --> 181
However when the index is fed to CCTK_VarDataPtrI to get a pointer to the grid function, it always points to the 0th component. To get the pointer to the component I wanted, I had to increment the pointer by the correct amount.
This not a major inconvenience, but it is quite counterintuitive. Is there a reason for such behaviour?
Thanks again,
Federico Guercilena
--
Federico Guercilena
Institut für Theoretische Physik
Johann Wolfgang Goethe-Universität
Max-von-Laue-Str. 1
60438 Frankfurt am Main, Germany
Telephone: +49 69 798 47887