next up previous contents
Next: Parameters Up: Symmetries for Grid Functions Previous: Registering Symmetry Behaviour   Contents

Calling Symmetry Boundary Conditions

CartGrid3D provides the following two routines to apply symmetry boundary conditions to a variable group:

CartSymGI(cGH *GH, int *gi)
CartSymGN(cGH *GH, const char *gn)

and for a specific variable it provides:

CartSymVI(cGH *GH, int *vi)
CartSymVN(cGH *GH, const char *gn)

A group or variable can be specified by its index value or name (use the 'I' or 'N' version respectively). The Fortran versions of these functions take an additional first argument, which is an integer which will hold the return value.