[Developers] Adding C/C++ indexing functions for vector grid variables

Frank Loeffler knarf at cct.lsu.edu
Tue Dec 8 14:33:18 CST 2009


Hi,

On Fri, Dec 04, 2009 at 09:16:47PM -0800, Erik Schnetter wrote:
> Add functions CCTK_VectGF1D, CCTK_VectGF2D etc. and the corresponding 
> macros CCTK_VECTGFINDEX1D etc. that allow indexing into vector grid 
> variables.  Vector grid variables require an additional index, namely 
> the vector index.

It looks good, but please fix the following typo before commiting:

+int CCTK_VectGFIndex1D (const cGH *GH, int i, int n)
+{
+  return (i + GH_>cctk_lsh[0]*n);
+}
                 ^
                 |

thanks for contributing this patch, Frank

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20091208/d95ceb63/attachment.bin 


More information about the Developers mailing list