| { |
| "thorn_name": "CactusBase/SymBase", |
| "url": "https://bitbucket.org/cactuscode/cactusbase.git", |
| "configuration": "", |
| "interface": "# Interface definition for thorn SymBase\n# $Header$\n\nIMPLEMENTS: SymBase\n\n\n\n# Register a symmetry, and query the symmetry name/handle mapping:\n\nCCTK_INT FUNCTION SymmetryRegister (CCTK_STRING IN sym_name)\nPROVIDES FUNCTION SymmetryRegister \\\n WITH SymBase_SymmetryRegister \\\n LANGUAGE C\n\nCCTK_INT FUNCTION SymmetryHandleOfName (CCTK_STRING IN sym_name)\nPROVIDES FUNCTION SymmetryHandleOfName \\\n WITH SymBase_SymmetryHandleOfName \\\n LANGUAGE C\n\nCCTK_POINTER_TO_CONST FUNCTION SymmetryNameOfHandle (CCTK_INT IN sym_handle)\nPROVIDES FUNCTION SymmetryNameOfHandle \\\n WITH SymBase_SymmetryNameOfHandle \\\n LANGUAGE C\n\n\n\n# Register a symmetry condition for a face:\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGrid \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width) \nPROVIDES FUNCTION SymmetryRegisterGrid \\\n WITH SymBase_SymmetryRegisterGrid \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGI \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width, \\\n CCTK_INT IN group_index)\nPROVIDES FUNCTION SymmetryRegisterGI \\\n WITH SymBase_SymmetryRegisterGI \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGN \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT IN ARRAY which_faces, \\\n CCTK_INT IN ARRAY symmetry_zone_width, \\\n CCTK_STRING IN group_name)\nPROVIDES FUNCTION SymmetryRegisterGN \\\n WITH SymBase_SymmetryRegisterGN \\\n LANGUAGE C\n\n\n\n# Register a symmetry interpolator:\n\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\nPROVIDES FUNCTION SymmetryRegisterGridInterpolator \\\n WITH SymBase_SymmetryRegisterGridInterpolator \\\n LANGUAGE C\n\n\n\n# Get the symmetry table handle for a grid or grid array:\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\nPROVIDES FUNCTION SymmetryTableHandleForGrid \\\n WITH SymBase_SymmetryTableHandleForGrid \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGI \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN group_index)\nPROVIDES FUNCTION SymmetryTableHandleForGI \\\n WITH SymBase_SymmetryTableHandleForGI \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryTableHandleForGN \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_STRING IN group_name)\nPROVIDES FUNCTION SymmetryTableHandleForGN \\\n WITH SymBase_SymmetryTableHandleForGN \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n GetSymmetryBoundaries \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN size, \\\n CCTK_INT OUT ARRAY symbnd)\nPROVIDES FUNCTION GetSymmetryBoundaries \\\n WITH SymBase_GetSymmetryBoundaries \\\n LANGUAGE C\n\n\n\n# Interpolation\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nPROVIDES FUNCTION SymmetryInterpolate \\\n WITH SymBase_SymmetryInterpolate \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\nPROVIDES FUNCTION SymmetryInterpolateFaces \\\n WITH SymBase_SymmetryInterpolateFaces \\\n LANGUAGE C\n\nCCTK_INT FUNCTION \\\n DriverInterpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays)\nUSES FUNCTION DriverInterpolate\n", |
| "param": "# Parameter definitions for thorn SymBase\n# $Header$\n\nBOOLEAN verbose \"Output symmetry boundary face descriptions after registration\"\n{\n} \"yes\"\n", |
| "schedule": "# Schedule definitions for thorn SymBase\n# $Header$\n\nSCHEDULE SymBase_Startup AT CCTK_STARTUP\n{\n LANG: C\n} \"Register GH Extension for SymBase\"\n\nSCHEDULE GROUP SymBase_Wrapper AT CCTK_WRAGH\n{\n} \"Wrapper group for SymBase\"\n\nSCHEDULE GROUP SymmetryRegister IN SymBase_Wrapper\n{\n} \"Register your symmetries here\"\n\nSCHEDULE SymBase_Statistics IN SymBase_Wrapper AFTER SymmetryRegister\n{\n LANG: C\n} \"Print symmetry boundary face descriptions\"\n\nSCHEDULE SymBase_Check AT CCTK_BASEGRID\n{\n LANG: C\n} \"Check whether the driver set up the grid consistently\"\n", |
| "src": { |
| "make.code.defn": "# Main make.code.defn file for thorn SymBase\n# $Header$\n\n# Source files in this directory\nSRCS = Check.c Faces.c Handles.c Interpolation.c Startup.c Statistics.c Table.c\n\n# Subdirectories containing source files\nSUBDIRS = \n", |
| "SymBase.h": "/*@@\n @file SymBase.h\n @author Erik Schnetter\n @date 2004/03/07 09:48:53\n @desc\n Declarations for thorn SymBase\n @version $Header$\n @enddesc\n@@*/\n\n#ifndef SYMBASE_H\n#define SYMBASE_H\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n\n/* SymBase's GH extension */\nstruct SymBase {\n /* The table handles below identify tables that have the following\n entries:\n\n CCTK_INT symmetry_handle[2*dim]\n CCTK_INT symmetry_zone_width[2*dim]\n CCTK_FPOINTER symmetry_interpolate[2*dim]\n\n dim is here the dimension of the group containing the variable,\n i.e. there is one entry per face. The true type of the\n symmetry_interpolate entries is SymmetryInterpolateFPointer.\n\n (Given that user code is not allowed to modify these tables, and\n that this structure is defined here in this header file, there is\n no real need to use tables for this. It would be possible to put\n these data directly into this structure, thereby simplifying user\n code and not make anything less flexible.)\n */\n\n /* Grid symmetry table handle */\n int sym_table;\n\n /* Grid array symmetry table handles, one handle per grid\n variable */\n int *array_sym_tables;\n};\n\ntypedef CCTK_INT (*SymmetryInterpolateFPointer)(\n CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const N_dims,\n CCTK_INT const local_interp_handle, CCTK_INT const param_table_handle,\n CCTK_INT const coord_system_handle, CCTK_INT const N_interp_points,\n CCTK_INT const interp_coords_type,\n CCTK_POINTER_TO_CONST const interp_coords[], CCTK_INT const N_input_arrays,\n CCTK_INT const input_array_indices[], CCTK_INT const N_output_arrays,\n CCTK_INT const output_array_types[], CCTK_POINTER const output_arrays[],\n CCTK_INT const faces);\n\n/* Number of registered symmetries */\nextern int SymBase_num_symmetries;\n\n/* The names of these symmetries */\nextern const char **SymBase_symmetry_names;\n\n/* Startup.c */\nint SymBase_Startup(void);\nvoid *SymBase_Setup(tFleshConfig *const config, int const convlev,\n cGH *const cctkGH);\n\n/* Handles.c */\nCCTK_INT SymBase_SymmetryRegister(CCTK_STRING const sym_name);\nCCTK_INT SymBase_SymmetryHandleOfName(CCTK_STRING const sym_name);\nCCTK_POINTER_TO_CONST SymBase_SymmetryNameOfHandle(CCTK_INT const sym_handle);\n\n/* Faces.c */\nCCTK_INT\nSymBase_SymmetryRegisterFaces(CCTK_INT const sym_table,\n CCTK_INT const group_dim,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width);\nCCTK_INT\nSymBase_SymmetryRegisterGrid(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width);\nCCTK_INT\nSymBase_SymmetryRegisterGI(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width,\n CCTK_INT const group_index);\nCCTK_INT\nSymBase_SymmetryRegisterGN(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width,\n CCTK_STRING const group_name);\n\nCCTK_INT\nSymBase_SymmetryRegisterInterpolatorFaces(\n CCTK_INT const sym_table, CCTK_INT const group_dim,\n CCTK_INT const sym_handle,\n SymmetryInterpolateFPointer const new_symmetry_interpolate);\nCCTK_INT\nSymBase_SymmetryRegisterGridInterpolator(\n CCTK_POINTER const cctkGH_, CCTK_INT const sym_handle,\n SymmetryInterpolateFPointer const new_symmetry_interpolate);\n\n/* Table.c */\nCCTK_INT\nSymBase_SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST const cctkGH_);\nCCTK_INT\nSymBase_SymmetryTableHandleForGI(CCTK_POINTER_TO_CONST const cctkGH_,\n CCTK_INT const group_index);\nCCTK_INT\nSymBase_SymmetryTableHandleForGN(CCTK_POINTER_TO_CONST const cctkGH_,\n CCTK_STRING const group_name);\n\n/* Interpolate.c */\nCCTK_INT\nSymBase_SymmetryInterpolate(\n CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const N_dims,\n CCTK_INT const local_interp_handle, CCTK_INT const param_table_handle,\n CCTK_INT const coord_system_handle, CCTK_INT const N_interp_points,\n CCTK_INT const interp_coords_type,\n CCTK_POINTER_TO_CONST const interp_coords[], CCTK_INT const N_input_arrays,\n CCTK_INT const input_array_indices[], CCTK_INT const N_output_arrays,\n CCTK_INT const output_array_types[], CCTK_POINTER const output_arrays[]);\nCCTK_INT\nSymBase_SymmetryInterpolateFaces(\n CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const N_dims,\n CCTK_INT const local_interp_handle, CCTK_INT const param_table_handle,\n CCTK_INT const coord_system_handle, CCTK_INT const N_interp_points,\n CCTK_INT const interp_coords_type,\n CCTK_POINTER_TO_CONST const interp_coords[], CCTK_INT const N_input_arrays,\n CCTK_INT const input_array_indices[], CCTK_INT const N_output_arrays,\n CCTK_INT const output_array_types[], CCTK_POINTER const output_arrays[],\n CCTK_INT const faces);\n\n/* Statistics.c */\nvoid SymBase_Statistics(CCTK_ARGUMENTS);\n\n/* Check.c */\nvoid SymBase_Check(CCTK_ARGUMENTS);\n\n#endif /* ! defined SYMBASE_H */\n", |
| "Check.c": "/*@@\n @file Check.c\n @author Erik Schnetter\n @date 2004-06-19\n @desc\n Check whether the driver set up the grid consistently.\n @version $Header$\n @enddesc\n@@*/\n\n#include \"util_Table.h\"\n\n#include \"cctk.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Check_c);\n\n/*@@\n @routine SymBase_Check\n @author Erik Schnetter\n @date 2004-06-19\n @desc\n Check whether the driver set up the grid consistently.\n @enddesc\n @var CCTK_ARGUMENTS\n @endvar\n@@*/\n\nvoid SymBase_Check(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_SymBase_Check;\n\n struct SymBase const *symdata;\n CCTK_INT sym_table;\n CCTK_INT symmetry_handle[100];\n CCTK_INT symmetry_zone_width[100];\n int ierr;\n int d;\n\n /* Get table entries */\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error\");\n }\n\n sym_table = symdata->sym_table;\n\n if (2 * cctk_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * cctk_dim, symmetry_handle,\n \"symmetry_handle\");\n if (ierr != 2 * cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * cctk_dim, symmetry_zone_width,\n \"symmetry_zone_width\");\n if (ierr != 2 * cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n ierr = 0;\n\n for (d = 0; d < cctk_dim; ++d) {\n\n /* Check lower boundary */\n if (symmetry_handle[2 * d] >= 0) {\n if (cctk_bbox[2 * d]) {\n if (cctk_lsh[d] - cctk_nghostzones[d] < symmetry_zone_width[2 * d]) {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"This processor's domain is too small for the boundary \"\n \"condition at the lower boundary in direction %d\",\n d);\n ierr = 1;\n }\n }\n }\n\n /* Check upper boundary */\n if (symmetry_handle[2 * d + 1] >= 0) {\n if (cctk_bbox[2 * d + 1]) {\n if (cctk_lsh[d] - cctk_nghostzones[d] <\n symmetry_zone_width[2 * d + 1]) {\n CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"This processor's domain is too small for the boundary \"\n \"condition at the upper boundary in direction %d\",\n d);\n ierr = 1;\n }\n }\n }\n }\n\n if (ierr) {\n CCTK_WARN(0, \"The grid setup is inconsistent with the boundary sizes. One \"\n \"or more processors' domains are too small. The grid setup \"\n \"is decided by the driver. Try to make the driver lay out \"\n \"the grids differently.\");\n }\n}\n", |
| "Handles.c": "/*@@\n @file Handles.c\n @author Erik Schnetter\n @date 2004/03/07 09:48:53\n @desc\n Register a symmetry, and query the symmetry name/handle mapping\n @version $Id$\n @enddesc\n@@*/\n\n#include <stdlib.h>\n#include <string.h>\n\n#include \"cctk.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Handles_c);\n\n/* Number of registered symmetries */\nint SymBase_num_symmetries;\n\n/* The names of these symmetries */\nconst char **SymBase_symmetry_names;\n\n/*@@\n @routine SymBase_SymmetryRegister\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a symmetry\n @enddesc\n @var sym_name\n @vtype CCTK_STRING\n @vdesc Name of the symmetry\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n >=0 symmetry handle\n -1 if sym_name has an illegal value\n -2 if a symmetry with the same name has already been registered\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegister(CCTK_STRING const sym_name) {\n int n;\n\n if (!sym_name) {\n return -1; /* illegal argument */\n }\n\n for (n = 0; n < SymBase_num_symmetries; ++n) {\n if (strcmp(sym_name, SymBase_symmetry_names[n]) == 0) {\n return -2; /* symmetry exists already */\n }\n }\n\n SymBase_symmetry_names =\n realloc(SymBase_symmetry_names,\n (SymBase_num_symmetries + 1) * sizeof *SymBase_symmetry_names);\n if (!SymBase_symmetry_names) {\n CCTK_WARN(0, \"internal error\");\n }\n\n SymBase_symmetry_names[SymBase_num_symmetries] = strdup(sym_name);\n if (!SymBase_symmetry_names[SymBase_num_symmetries]) {\n CCTK_WARN(0, \"internal error\");\n }\n\n ++SymBase_num_symmetries;\n\n return SymBase_num_symmetries - 1;\n}\n\n/*@@\n @routine SymBase_SymmetryHandleOfName\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Map a symmetry name to a symmetry handle\n @enddesc\n @var sym_name\n @vtype CCTK_STRING\n @vdesc Name of the symmetry\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n >=0 symmetry handle\n -1 if sym_name has an illegal value\n -2 if no symmetry with that name has been registered\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryHandleOfName(CCTK_STRING const sym_name) {\n int n;\n\n if (!sym_name) {\n return -1; /* illegal argument */\n }\n\n for (n = 0; n < SymBase_num_symmetries; ++n) {\n if (strcmp(sym_name, SymBase_symmetry_names[n]) == 0) {\n return n; /* found */\n }\n }\n\n return -2; /* not found */\n}\n\n/*@@\n @routine SymBase_SymmetryNameOfHandle\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Map a symmetry handle to a symmetry name\n @enddesc\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry name\n @vio in\n @endvar\n @returntype CCTK_POINTER_TO_CONST\n @returndesc\n char const * containing the symmetry name\n NULL if no symmetry with that handle has been registered\n @endreturndesc\n@@*/\n\nCCTK_POINTER_TO_CONST\nSymBase_SymmetryNameOfHandle(CCTK_INT const sym_handle) {\n if (sym_handle < 0 || sym_handle >= SymBase_num_symmetries) {\n return NULL; /* illegal argument */\n }\n\n return SymBase_symmetry_names[sym_handle];\n}\n", |
| "Faces.c": "/*@@\n @file Faces.c\n @author Erik Schnetter\n @date 2004/03/07 09:48:53\n @desc\n Register a symmetry condition for a face\n @version $Header$\n @enddesc\n@@*/\n\n#include <stdlib.h>\n\n#include \"cctk.h\"\n\n#include \"util_Table.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Faces_c);\n\n/*@@\n @routine SymBase_SymmetryRegisterFaces\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a symmetry for certain faces\n @enddesc\n @var sym_table\n @vtype CCTK_INT\n @vdesc Table which describes the grid or grid array\n @vio in\n @endvar\n @var group_dim\n @vtype CCTK_INT\n @vdesc Dimension of the grid or grid array\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var which_faces\n @vtype CCTK_INT[2*group_dim]\n @vdesc The set of faces\n @vio in\n @endvar\n @var symmetry_zone_width\n @vtype CCTK_INT[2*group_dim]\n @vdesc Symmetry boundary width\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n -1 if sym_table has an illegal value\n -9 if group_dim has an illegal value\n -2 if sym_handle has an illegal value\n -3 if which_faces has an illegal value\n -4 if symmetry_zone_width has an illegal value\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterFaces(CCTK_INT const sym_table,\n CCTK_INT const group_dim,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width) {\n CCTK_INT symmetry_handle[100];\n CCTK_INT symmetry_zone_width[100];\n int face;\n int ierr;\n\n /* Check arguments */\n if (sym_table < 0) {\n return -1; /* illegal argument */\n }\n if (group_dim < 0) {\n return -9; /* illegal argument */\n }\n if (sym_handle < 0 || sym_handle >= SymBase_num_symmetries) {\n return -2; /* illegal argument */\n }\n if (!which_faces) {\n return -3; /* illegal argument */\n }\n if (!new_symmetry_zone_width) {\n return -4; /* illegal argument */\n }\n\n /* Get table entries */\n if (2 * group_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * group_dim, symmetry_handle,\n \"symmetry_handle\");\n if (ierr != 2 * group_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * group_dim, symmetry_zone_width,\n \"symmetry_zone_width\");\n if (ierr != 2 * group_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n /* Update table entries */\n for (face = 0; face < 2 * group_dim; ++face) {\n if (which_faces[face]) {\n if (symmetry_handle[face] != -1) {\n return -5; /* The face is already taken */\n }\n symmetry_handle[face] = sym_handle;\n if (new_symmetry_zone_width[face] > 100) {\n CCTK_WARN(0, \"Tried to register a symmetry face with a symmetry zone \"\n \"width >100 -- this looks like an error. This can be \"\n \"caused by using a symmetry thorn (or the old built-in \"\n \"CartGrid3D symmetries) which does not use CoordBase with \"\n \"new versions of the Carpet driver. Please use a \"\n \"separate symmetry thorn (e.g. ReflectionSymmetry) \"\n \"instead.\");\n }\n symmetry_zone_width[face] = new_symmetry_zone_width[face];\n }\n }\n\n /* Set table entries */\n ierr = Util_TableSetIntArray(sym_table, 2 * group_dim, symmetry_handle,\n \"symmetry_handle\");\n if (ierr != 1) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableSetIntArray(sym_table, 2 * group_dim, symmetry_zone_width,\n \"symmetry_zone_width\");\n if (ierr != 1) {\n CCTK_WARN(0, \"internal error\");\n }\n\n return 0;\n}\n\n/*@@\n @routine SymBase_SymmetryRegisterGrid\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a symmetry for certain faces of the grid hierarchy\n @enddesc\n @var cctkGH\n @vtype cGH *\n @vdesc The grid hierarchy\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var which_faces\n @vtype CCTK_INT[2*group_dim]\n @vdesc The set of faces\n @vio in\n @endvar\n @var symmetry_zone_width\n @vtype CCTK_INT[2*group_dim]\n @vdesc Symmetry boundary width\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n Error codes of SymBase_SymmetryRegisterFaces\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterGrid(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width) {\n cGH const *const cctkGH = cctkGH_;\n struct SymBase const *symdata;\n\n if (!cctkGH) {\n CCTK_WARN(0, \"internal error\");\n }\n\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error\");\n }\n\n return SymBase_SymmetryRegisterFaces(symdata->sym_table, cctkGH->cctk_dim,\n sym_handle, which_faces,\n new_symmetry_zone_width);\n}\n\n/*@@\n @routine SymBase_SymmetryRegisterGI\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a symmetry for certain faces of grid arrays\n @enddesc\n @var cctkGH\n @vtype cGH *\n @vdesc The grid hierarchy\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var which_faces\n @vtype CCTK_INT[2*group_dim]\n @vdesc The set of faces\n @vio in\n @endvar\n @var symmetry_zone_width\n @vtype CCTK_INT[2*group_dim]\n @vdesc Symmetry boundary width\n @vio in\n @endvar\n @var group_index\n @vtype CCTK_INT\n @vdesc Grid array group\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n -6 if group_index has an illegal value\n -7 if the group has an illegal type\n -8 internal error\n Error codes of SymBase_SymmetryRegisterFaces\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterGI(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width,\n CCTK_INT const group_index) {\n cGH const *const cctkGH = cctkGH_;\n struct SymBase const *symdata;\n\n if (!cctkGH) {\n CCTK_WARN(0, \"internal error\");\n }\n\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error\");\n }\n\n if (group_index < 0 || group_index >= CCTK_NumGroups()) {\n return -6; /* illegal argument */\n }\n\n switch (CCTK_GroupTypeI(group_index)) {\n case CCTK_GF:\n return -7; /* illegal group type */\n case CCTK_SCALAR:\n case CCTK_ARRAY:\n return SymBase_SymmetryRegisterFaces(\n symdata->array_sym_tables[group_index], CCTK_GroupDimI(group_index),\n sym_handle, which_faces, new_symmetry_zone_width);\n default:\n CCTK_WARN(0, \"internal error\");\n }\n\n return -8; /* internal error */\n}\n\n/*@@\n @routine SymBase_SymmetryRegisterGI\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a symmetry for certain faces of grid arrays\n @enddesc\n @var cctkGH\n @vtype cGH *\n @vdesc The grid hierarchy\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var which_faces\n @vtype CCTK_INT[2*group_dim]\n @vdesc The set of faces\n @vio in\n @endvar\n @var symmetry_zone_width\n @vtype CCTK_INT[2*group_dim]\n @vdesc Symmetry boundary width\n @vio in\n @endvar\n @var group_name\n @vtype CCTK_STRING\n @vdesc Grid array group\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n Error codes of CCTK_GroupIndex\n Error codes of SymBase_SymmetryRegisterGI\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterGN(CCTK_POINTER const cctkGH_,\n CCTK_INT const sym_handle,\n CCTK_INT const *const which_faces,\n CCTK_INT const *const new_symmetry_zone_width,\n CCTK_STRING const group_name) {\n int group_index;\n\n group_index = CCTK_GroupIndex(group_name);\n if (group_index < 0) {\n return group_index; /* illegal argument */\n }\n\n return SymBase_SymmetryRegisterGI(cctkGH_, sym_handle, which_faces,\n new_symmetry_zone_width, group_index);\n}\n\n/*@@\n @routine SymBase_SymmetryRegisterInterpolatorFaces\n @author Erik Schnetter\n @date 2004-05-25\n @desc\n Register a symmetry interpolator for certain faces\n @enddesc\n @var sym_table\n @vtype CCTK_INT\n @vdesc Table which describes the grid or grid array\n @vio in\n @endvar\n @var group_dim\n @vtype CCTK_INT\n @vdesc Dimension of the grid or grid array\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var symmetry_interpolate\n @vtype CCTK_FPOINTER\n @vdesc Routine that applies symmetries to the interpolation points\n and then calls back\n (may be NULL)\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n -1 if sym_table has an illegal value\n -9 if group_dim has an illegal value\n -2 if sym_handle has an illegal value\n -10 symmetry_interpolate is NULL\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterInterpolatorFaces(\n CCTK_INT const sym_table, CCTK_INT const group_dim,\n CCTK_INT const sym_handle,\n SymmetryInterpolateFPointer const new_symmetry_interpolate) {\n CCTK_INT symmetry_handle[100];\n CCTK_FPOINTER symmetry_interpolate[100];\n int face;\n int ierr;\n\n /* Check arguments */\n if (sym_table < 0) {\n return -1; /* illegal argument */\n }\n if (group_dim < 0) {\n return -9; /* illegal argument */\n }\n if (sym_handle < 0 || sym_handle >= SymBase_num_symmetries) {\n return -2; /* illegal argument */\n }\n if (!new_symmetry_interpolate) {\n return -10;\n }\n\n /* Get table entries */\n if (2 * group_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * group_dim, symmetry_handle,\n \"symmetry_handle\");\n if (ierr != 2 * group_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetFPointerArray(\n sym_table, 2 * group_dim, symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr != 2 * group_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n /* Update table entries */\n for (face = 0; face < 2 * group_dim; ++face) {\n if (symmetry_handle[face] == sym_handle) {\n symmetry_interpolate[face] = (CCTK_FPOINTER)new_symmetry_interpolate;\n }\n }\n\n /* Set table entries */\n ierr = Util_TableSetFPointerArray(\n sym_table, 2 * group_dim, symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr != 1) {\n CCTK_WARN(0, \"internal error\");\n }\n\n return 0;\n}\n\n/*@@\n @routine SymBase_SymmetryRegisterGridInterpolator\n @author Erik Schnetter\n @date 2004-05-25\n @desc\n Register a symmetry interpolator\n for certain faces of the grid hierarchy\n @enddesc\n @var cctkGH\n @vtype cGH *\n @vdesc The grid hierarchy\n @vio in\n @endvar\n @var sym_handle\n @vtype CCTK_INT\n @vdesc Symmetry handle\n @vio in\n @endvar\n @var symmetry_interpolate\n @vtype CCTK_FPOINTER\n @vdesc Routine that applies symmetries to the interpolation points\n and then calls back\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n Error codes of SymBase_SymmetryRegisterInterpolatorFaces\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryRegisterGridInterpolator(\n CCTK_POINTER const cctkGH_, CCTK_INT const sym_handle,\n SymmetryInterpolateFPointer const new_symmetry_interpolate) {\n cGH const *const cctkGH = cctkGH_;\n struct SymBase const *symdata;\n\n if (!cctkGH) {\n CCTK_WARN(0, \"internal error\");\n }\n\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error\");\n }\n\n return SymBase_SymmetryRegisterInterpolatorFaces(symdata->sym_table,\n cctkGH->cctk_dim, sym_handle,\n new_symmetry_interpolate);\n}\n", |
| "Statistics.c": "/*@@\n @file Statistics.c\n @author Erik Schnetter\n @date 2004-05-25\n @desc\n Provide information about the registered symmetry conditions\n @version $Header$\n @enddesc\n@@*/\n\n#include <stdlib.h>\n\n#include \"cctk.h\"\n#include \"cctk_Parameters.h\"\n\n#include \"util_Table.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Statistics_c);\n\n/*@@\n @routine SymBase_Statistics\n @author Erik Schnetter\n @date 2004-05-25\n @desc\n If verbose, print the symmetry boundary conditions for each\n face.\n Warn if symmetries do not have interpolation operators\n associated with them.\n @enddesc\n@@*/\n\nvoid SymBase_Statistics(CCTK_ARGUMENTS) {\n DECLARE_CCTK_ARGUMENTS_SymBase_Statistics;\n DECLARE_CCTK_PARAMETERS;\n\n CCTK_INT sym_table;\n CCTK_INT symmetry_handle[100];\n CCTK_FPOINTER symmetry_interpolate[100];\n char const *symmetry_name;\n int face;\n int ierr;\n\n /* Get table */\n sym_table = SymmetryTableHandleForGrid(cctkGH);\n if (sym_table < 0)\n CCTK_WARN(0, \"internal error\");\n\n /* Get table entries */\n if (2 * cctkGH->cctk_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = Util_TableGetIntArray(sym_table, 2 * cctkGH->cctk_dim, symmetry_handle,\n \"symmetry_handle\");\n if (ierr != 2 * cctkGH->cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr =\n Util_TableGetFPointerArray(sym_table, 2 * cctkGH->cctk_dim,\n symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr != 2 * cctkGH->cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n /* Print information about the registered symmetry faces, if desired */\n\n if (verbose) {\n\n /* Loop over all faces */\n for (face = 0; face < 2 * cctkGH->cctk_dim; ++face) {\n if (symmetry_handle[face] >= 0) {\n symmetry_name = SymBase_SymmetryNameOfHandle(symmetry_handle[face]);\n if (!symmetry_name) {\n CCTK_WARN(0, \"internal error\");\n }\n if (face >= 6) {\n CCTK_WARN(0, \"only 3 dimensions are supported so far\");\n }\n CCTK_VInfo(CCTK_THORNSTRING, \"Symmetry on %s %c-face: %s\",\n face % 2 == 0 ? \"lower\" : \"upper\", \"xyz\"[face / 2],\n symmetry_name);\n }\n }\n }\n\n /* Warn about symmetries without interpolators */\n\n /* Loop over all registered symmetries */\n for (face = 0; face < 2 * cctkGH->cctk_dim; ++face) {\n if (symmetry_handle[face] >= 0) {\n if (symmetry_interpolate[face] == NULL) {\n symmetry_name = SymBase_SymmetryNameOfHandle(symmetry_handle[face]);\n if (!symmetry_name) {\n CCTK_WARN(0, \"internal error\");\n }\n if (face >= 6) {\n CCTK_WARN(0, \"only 3 dimensions are supported so far\");\n }\n CCTK_VWarn(2, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"The symmetry \\\"%s\\\" on the %s %c-face has not registered a \"\n \"symmetry interpolator\",\n symmetry_name, face % 2 == 0 ? \"lower\" : \"upper\",\n \"xyz\"[face / 2]);\n }\n }\n }\n}\n", |
| "Table.c": "/*@@\n @file Table.c\n @author Erik Schnetter\n @date 2004/03/07 09:48:53\n @desc\n Get the symmetry table handle for a grid or grid array\n @version $Header$\n @enddesc\n@@*/\n\n#include \"cctk.h\"\n#include \"util_Table.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Table_c);\n\n/*@@\n @routine SymBase_SymmetryTableHandleForGrid\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Return the symmetry table handle for the grid hierarchy\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n >=0 symmetry table handle\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryTableHandleForGrid(CCTK_POINTER_TO_CONST const cctkGH_) {\n cGH const *const cctkGH = cctkGH_;\n struct SymBase const *symdata;\n\n if (!cctkGH) {\n CCTK_WARN(0, \"internal error: cctkGH does not exist\");\n }\n\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error: SymBase GH extension does not exist\");\n }\n\n return symdata->sym_table;\n}\n\n/*@@\n @routine SymBase_SymmetryTableHandleForGI\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Return the symmetry table handle for a grid array\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @var group_index\n @vtype CCTK_INT\n @vdesc Group\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n >=0 symmetry table handle\n -6 if group_index has an illegal value\n -7 if the group type has an illegal value\n -8 if there was an internal error\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryTableHandleForGI(CCTK_POINTER_TO_CONST const cctkGH_,\n CCTK_INT const group_index) {\n cGH const *const cctkGH = cctkGH_;\n struct SymBase const *symdata;\n\n if (!cctkGH) {\n CCTK_WARN(0, \"internal error: cctkGH does not exist\");\n }\n\n symdata = CCTK_GHExtension(cctkGH, \"SymBase\");\n if (!symdata) {\n CCTK_WARN(0, \"internal error: SymBase GH extension does not exist\");\n }\n\n if (group_index < 0 || group_index >= CCTK_NumGroups()) {\n return -6; /* illegal argument */\n }\n\n switch (CCTK_GroupTypeI(group_index)) {\n case CCTK_GF:\n return -7; /* illegal group type */\n case CCTK_SCALAR:\n case CCTK_ARRAY:\n return symdata->array_sym_tables[group_index];\n default:\n CCTK_WARN(0, \"internal error\");\n }\n\n return -8; /* internal error */\n}\n\n/*@@\n @routine SymBase_SymmetryTableHandleForGN\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Return the symmetry table handle for a grid array\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @var group_name\n @vtype CCTK_STRING\n @vdesc Group\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n >=0 symmetry table handle\n Error codes of CCTK_GroupIndex\n Error codes of SymBase_SymmetryTableHandleForGI\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryTableHandleForGN(CCTK_POINTER_TO_CONST const cctkGH_,\n CCTK_STRING const group_name) {\n int group_index;\n\n group_index = CCTK_GroupIndex(group_name);\n if (group_index < 0) {\n return group_index; /* illegal argument */\n }\n\n return SymBase_SymmetryTableHandleForGI(cctkGH_, group_index);\n}\n\n/*@@\n @routine SymBase_GetSymmetryBoundaries\n @author Erik Schnetter\n @date 2006-05-16\n @desc\n Determine which boundaries are symmetry boundaries\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @var size\n @vtype CCTK_INT\n @vdesc Array size\n @vio in\n @endvar\n @var symbnd\n @vtype CCTK_INT [size]\n @vdesc 0 for outer boundary, 1 for symmetry boundary\n @vio out\n @endvar\n @returntype CCTK_INT\n @returndesc\n 0 Success\n -10 Wrong array size; must be 2*cctk_dim\n -11 Symmetry table handle does not exist\n -12 Wrong number of symmetry table entries (internal error)\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_GetSymmetryBoundaries(CCTK_POINTER_TO_CONST const cctkGH_,\n CCTK_INT const size,\n CCTK_INT *restrict const symbnd) {\n cGH const *const cctkGH = cctkGH_;\n CCTK_INT symtable;\n CCTK_INT symmetry_handle[6];\n CCTK_INT iret;\n int d;\n\n /* Check the arguments */\n if (size != 2 * cctkGH->cctk_dim) {\n return -10;\n }\n\n /* Get the symmetry table */\n symtable = SymmetryTableHandleForGrid(cctkGH);\n if (symtable < 0) {\n return -11;\n }\n\n /* Get the symmetry handles for each face */\n iret = Util_TableGetIntArray(symtable, 2 * cctkGH->cctk_dim, symmetry_handle,\n \"symmetry_handle\");\n if (iret != 2 * cctkGH->cctk_dim) {\n return -12;\n }\n\n /* A face has a symmetry boundary if there is a valid (non-negative)\n handle registered for that face */\n for (d = 0; d < 2 * cctkGH->cctk_dim; ++d) {\n symbnd[d] = symmetry_handle[d] >= 0;\n }\n\n /* Success */\n return 0;\n}\n", |
| "Startup.c": "/*@@\n @file Startup.c\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Thorn startup\n @version $Id$\n @enddesc\n@@*/\n\n#include <stdlib.h>\n\n#include \"cctk.h\"\n\n#include \"util_Table.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Startup_c);\n\n/*@@\n @routine SymBase_Startup\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Register a GH extension and initialise the global variables\n @enddesc\n @returntype int\n @returndesc\n status code\n 0 for success\n @endreturndesc\n@@*/\n\nint SymBase_Startup(void) {\n int handle;\n int ierr;\n\n handle = CCTK_RegisterGHExtension(\"SymBase\");\n if (handle < 0) {\n CCTK_WARN(\n 0, \"Internal Error: Failed to create GH extension for symmetry data\");\n }\n\n ierr = CCTK_RegisterGHExtensionSetupGH(handle, SymBase_Setup);\n if (ierr != 1) { /* strange error code convention */\n CCTK_WARN(0,\n \"Internal Error: Could not register GH Extension setup routine\");\n }\n\n SymBase_num_symmetries = 0;\n SymBase_symmetry_names = NULL;\n\n return 0; /* no error */\n}\n\n/*@@\n @routine SymBase_Setup\n @author Erik Schnetter\n @date 2004-03-06\n @desc\n Initialise the GH extension\n @enddesc\n @var config\n @vtype tFleshConfig *\n @vdesc Internal flesh information, unused\n @vio in\n @endvar\n @var convlev\n @vtype int\n @vdesc Convergence level, unused\n @vio in\n @endvar\n @var cctkGH\n @vtype cGH *\n @vdesc Grid hierarchy\n @vio in\n @endvar\n@@*/\n\nvoid *SymBase_Setup(tFleshConfig *const config, int const convlev,\n cGH *const cctkGH) {\n struct SymBase *symdata;\n CCTK_INT symmetry_handle[100];\n CCTK_INT symmetry_zone_width[100];\n CCTK_FPOINTER symmetry_interpolate[100];\n int group;\n int face;\n int ierr;\n const void *dummy;\n\n /* avoid compiler warnings about unused parameters */\n dummy = &config;\n dummy = &convlev;\n dummy = &cctkGH;\n dummy = &dummy;\n\n /* Create GH extension */\n symdata = malloc(sizeof *symdata);\n if (!symdata) {\n CCTK_WARN(0, \"Failed to allocate memory for symmetry data\");\n }\n\n /* Initialise handle and zone width arrays */\n for (face = 0; face < 100; ++face) {\n symmetry_handle[face] = -1;\n symmetry_zone_width[face] = 0;\n symmetry_interpolate[face] = NULL;\n }\n\n /* Create grid symmetry table */\n symdata->sym_table = Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE);\n\n if (symdata->sym_table < 0) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry table.\");\n }\n\n if (2 * cctkGH->cctk_dim > 100) {\n CCTK_WARN(0, \"Internal Error: Can currently only handle a hundred faces.\");\n }\n ierr = Util_TableSetIntArray(symdata->sym_table, 2 * cctkGH->cctk_dim,\n symmetry_handle, \"symmetry_handle\");\n if (ierr) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry_handle array\");\n }\n ierr = Util_TableSetIntArray(symdata->sym_table, 2 * cctkGH->cctk_dim,\n symmetry_zone_width, \"symmetry_zone_width\");\n if (ierr) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry_zone_width array\");\n }\n ierr =\n Util_TableSetFPointerArray(symdata->sym_table, 2 * cctkGH->cctk_dim,\n symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry_fold_points array\");\n }\n\n /* Create grid array symmetry tables */\n symdata->array_sym_tables =\n malloc(CCTK_NumGroups() * sizeof *symdata->array_sym_tables);\n if (!symdata->array_sym_tables) {\n CCTK_WARN(\n 0,\n \"Internal Error: Failed to create array for symmetry tables for GAs\");\n }\n\n for (group = 0; group < CCTK_NumGroups(); ++group) {\n switch (CCTK_GroupTypeI(group)) {\n case CCTK_GF:\n\n /* No table */\n symdata->array_sym_tables[group] = -1;\n break;\n\n case CCTK_SCALAR:\n /* FALL_THROUGH */\n\n case CCTK_ARRAY:\n\n /* Create array symmetry table */\n symdata->array_sym_tables[group] =\n Util_TableCreate(UTIL_TABLE_FLAGS_CASE_INSENSITIVE);\n if (symdata->array_sym_tables[group] < 0) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry table for GA\");\n }\n\n if (2 * CCTK_GroupDimI(group) > 100) {\n CCTK_WARN(0, \"Internal Error: Can only handle 100 faces\");\n }\n ierr = Util_TableSetIntArray(symdata->array_sym_tables[group],\n 2 * CCTK_GroupDimI(group), symmetry_handle,\n \"symmetry_handle\");\n if (ierr) {\n CCTK_WARN(0, \"Internal Error: Failed to create symmetry_handle array\");\n }\n ierr = Util_TableSetIntArray(symdata->array_sym_tables[group],\n 2 * CCTK_GroupDimI(group),\n symmetry_zone_width, \"symmetry_zone_width\");\n if (ierr) {\n CCTK_WARN(0,\n \"Internal Error: Failed to create symmetry_zone_width array\");\n }\n ierr = Util_TableSetFPointerArray(\n symdata->array_sym_tables[group], 2 * CCTK_GroupDimI(group),\n symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr) {\n CCTK_WARN(\n 0, \"Internal Error: Failed to create symmetry_fold_points array\");\n }\n break;\n\n default:\n CCTK_WARN(0, \"Internal Error: Unknown GV type\");\n }\n }\n\n return symdata;\n}\n", |
| "Interpolation.c": "/*@@\n @file Interpolation.c\n @author Erik Schnetter\n @date 2004-05-11\n @desc\n Apply symmetry conditions during interpolation\n @version $Header$\n @enddesc\n@@*/\n\n#include <stdio.h>\n#include <stdlib.h>\n\n#include \"cctk.h\"\n#include \"cctk_Arguments.h\"\n\n#include \"util_ErrorCodes.h\"\n#include \"util_Table.h\"\n\n#include \"SymBase.h\"\n\n/* the rcs ID and its dummy function to use it */\nstatic const char *const rcsid = \"$Header$\";\nCCTK_FILEVERSION(CactusBase_SymBase_Interpolation_c);\n\n/*@@\n @routine SymBase_SymmetryInterpolate\n @author Erik Schnetter\n @date 2004-05-11\n @desc\n Adjust the coordinates of the interpolation points,\n call the driver's interpolation function,\n and then adjust the interpolated tensor components.\n All arguments are equivalent to the CCTK_InterpGridArrays\n function call.\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @var N_dims\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var local_interp_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var param_table_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var coord_system_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_interp_points\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var interp_coords_type\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var interp_coords\n @vtype CCTK_POINTER_TO_CONST[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_input_arrays\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var input_array_indices\n @vtype CCTK_INT[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_output_arrays\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var output_array_types\n @vtype CCTK_INT[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var output_arrays\n @vtype CCTK_POINTER[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n -91 GH is NULL\n -92 N_dims is not equal to cctkGH->cctk_dim\n -93 Input array has illegal group type\n -94 Mixing grid functions and grid arrays\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryInterpolate(\n CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const N_dims,\n CCTK_INT const local_interp_handle, CCTK_INT const param_table_handle,\n CCTK_INT const coord_system_handle, CCTK_INT const N_interp_points,\n CCTK_INT const interp_coords_type,\n CCTK_POINTER_TO_CONST const interp_coords[], CCTK_INT const N_input_arrays,\n CCTK_INT const input_array_indices[], CCTK_INT const N_output_arrays,\n CCTK_INT const output_array_types[], CCTK_POINTER const output_arrays[]) {\n cGH const *restrict const cctkGH = cctkGH_;\n CCTK_INT sym_table;\n CCTK_FPOINTER symmetry_interpolate[100];\n CCTK_INT faces;\n int has_grid_arrays, has_only_grid_arrays;\n int n;\n int f;\n int ierr;\n\n /* Check arguments */\n if (!cctkGH) {\n CCTK_WARN(1, \"cctkGH is NULL\");\n return -91;\n }\n\n /* If this interpolates grid arrays, then do not apply symmetries --\n there are no symmetries registered for grid arrays (yet). */\n has_grid_arrays = 0;\n has_only_grid_arrays = 1;\n for (n = 0; n < N_input_arrays; ++n) {\n if (input_array_indices[n] != -1) {\n const int grouptype = CCTK_GroupTypeFromVarI(input_array_indices[n]);\n switch (grouptype) {\n case CCTK_GF:\n has_only_grid_arrays = 0;\n break;\n case CCTK_SCALAR:\n case CCTK_ARRAY:\n has_grid_arrays = 1;\n break;\n default: {\n char *groupname = CCTK_GroupName(input_array_indices[n]);\n CCTK_VWarn(CCTK_WARN_ALERT, __LINE__, __FILE__, CCTK_THORNSTRING,\n \"Could not determine group type of input arrays for group \"\n \"'%s' (%ld), received %d\",\n groupname, (long)input_array_indices[n], grouptype);\n free(groupname);\n }\n return -93;\n }\n }\n }\n if (has_grid_arrays && !has_only_grid_arrays) {\n CCTK_WARN(1, \"The input arrays contain both grid function and grid arrays; \"\n \"this is not possible\");\n return -94;\n }\n if (has_grid_arrays) {\n /* Call the real interpolator */\n ierr = CCTK_IsFunctionAliased(\"DriverInterpolate\");\n if (!ierr) {\n CCTK_WARN(\n 0,\n \"The aliased function \\\"DriverInterpolate\\\" has not been provided\");\n }\n return DriverInterpolate(\n cctkGH, N_dims, local_interp_handle, param_table_handle,\n coord_system_handle, N_interp_points, interp_coords_type, interp_coords,\n N_input_arrays, input_array_indices, N_output_arrays,\n output_array_types, output_arrays);\n }\n\n /* Check arguments */\n if (N_dims != cctkGH->cctk_dim) {\n CCTK_WARN(1, \"The number of dimensions is not equal to the GH's number of \"\n \"dimensions\");\n return -92;\n }\n\n /* Get table */\n sym_table = SymmetryTableHandleForGrid(cctkGH);\n if (sym_table < 0)\n CCTK_WARN(0, \"internal error\");\n\n /* Get table entries */\n if (2 * cctkGH->cctk_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr =\n Util_TableGetFPointerArray(sym_table, 2 * cctkGH->cctk_dim,\n symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr != 2 * cctkGH->cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n /* Find all faces that need symmetries applied */\n faces = 0;\n for (f = 0; f < 2 * cctkGH->cctk_dim; ++f) {\n if (symmetry_interpolate[f]) {\n faces |= (1 << f);\n }\n }\n\n /* Forward the call */\n return SymBase_SymmetryInterpolateFaces(\n cctkGH, N_dims, local_interp_handle, param_table_handle,\n coord_system_handle, N_interp_points, interp_coords_type, interp_coords,\n N_input_arrays, input_array_indices, N_output_arrays, output_array_types,\n output_arrays, faces);\n}\n\n/*@@\n @routine SymBase_SymmetryInterpolateFaces\n @author Erik Schnetter\n @date 2004-05-11\n @desc\n Adjust the coordinates of the interpolation points,\n call the driver's interpolation function,\n and then adjust the interpolated tensor components,\n but only for the selected faces.\n When no faces are selected, forward the call to the\n driver's interpolator throug the aliased function\n \"DriverInterpolate\".\n All arguments except \"faces\" are equivalent to the\n CCTK_InterpGridArrays function call.\n @enddesc\n @var cctkGH\n @vtype CCTK_POINTER_TO_CONST\n @vdesc Grid hierarchy\n @vio in\n @endvar\n @var N_dims\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var local_interp_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var param_table_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var coord_system_handle\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_interp_points\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var interp_coords_type\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var interp_coords\n @vtype CCTK_POINTER_TO_CONST[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_input_arrays\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var input_array_indices\n @vtype CCTK_INT[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var N_output_arrays\n @vtype CCTK_INT\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var output_array_types\n @vtype CCTK_INT[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var output_arrays\n @vtype CCTK_POINTER[]\n @vdesc same as for the CCTK_InterpGridArrays call\n @vio in\n @endvar\n @var faces\n @vtype CCTK_INT\n @vdesc Bit mask selecting which faces' symmetries should be treated.\n @vio in\n @endvar\n @returntype CCTK_INT\n @returndesc\n status code\n 0 for success\n -91 GH is NULL\n -92 N_dims is not equal to cctkGH->cctk_dim\n -93 faces is NULL\n or the return value from DriverInterpolate\n @endreturndesc\n@@*/\n\nCCTK_INT\nSymBase_SymmetryInterpolateFaces(\n CCTK_POINTER_TO_CONST const cctkGH_, CCTK_INT const N_dims,\n CCTK_INT const local_interp_handle, CCTK_INT const param_table_handle,\n CCTK_INT const coord_system_handle, CCTK_INT const N_interp_points,\n CCTK_INT const interp_coords_type,\n CCTK_POINTER_TO_CONST const interp_coords[], CCTK_INT const N_input_arrays,\n CCTK_INT const input_array_indices[], CCTK_INT const N_output_arrays,\n CCTK_INT const output_array_types[], CCTK_POINTER const output_arrays[],\n CCTK_INT const faces) {\n cGH const *restrict const cctkGH = cctkGH_;\n CCTK_INT sym_table;\n CCTK_FPOINTER symmetry_interpolate[100];\n int face;\n int ierr;\n\n /* Check arguments */\n\n if (!cctkGH) {\n CCTK_WARN(1, \"cctkGH is NULL\");\n return -91;\n }\n\n if (N_dims != cctkGH->cctk_dim) {\n CCTK_WARN(1, \"The number of dimensions is not equal to the GH's number of \"\n \"dimensions\");\n return -92;\n }\n\n /* Get table */\n sym_table = SymmetryTableHandleForGrid(cctkGH);\n if (sym_table < 0)\n CCTK_WARN(0, \"internal error\");\n\n /* Get table entries */\n if (2 * cctkGH->cctk_dim > 100) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr =\n Util_TableGetFPointerArray(sym_table, 2 * cctkGH->cctk_dim,\n symmetry_interpolate, \"symmetry_interpolate\");\n if (ierr != 2 * cctkGH->cctk_dim) {\n CCTK_WARN(0, \"internal error\");\n }\n\n /* Find a face that needs a symmetry applied */\n for (face = 0; face < 2 * N_dims; ++face) {\n if (faces & (1 << face)) {\n break;\n }\n }\n\n if (face == 2 * N_dims) {\n /* All faces are done */\n\n /* Call the real interpolator */\n ierr = CCTK_IsFunctionAliased(\"DriverInterpolate\");\n if (!ierr) {\n CCTK_WARN(\n 0,\n \"The aliased function \\\"DriverInterpolate\\\" has not been provided\");\n }\n ierr = DriverInterpolate(\n cctkGH, N_dims, local_interp_handle, param_table_handle,\n coord_system_handle, N_interp_points, interp_coords_type, interp_coords,\n N_input_arrays, input_array_indices, N_output_arrays,\n output_array_types, output_arrays);\n\n } else {\n /* Treat the face */\n\n /* Recursive call to a symmetry condition */\n if (!symmetry_interpolate[face]) {\n CCTK_WARN(0, \"internal error\");\n }\n ierr = ((SymmetryInterpolateFPointer)symmetry_interpolate[face])(\n cctkGH, N_dims, local_interp_handle, param_table_handle,\n coord_system_handle, N_interp_points, interp_coords_type, interp_coords,\n N_input_arrays, input_array_indices, N_output_arrays,\n output_array_types, output_arrays, faces);\n }\n\n return ierr;\n}\n" |
| }, |
| "test": {}, |
| "doc": { |
| "documentation.tex": "% *======================================================================*\n% Cactus Thorn template for ThornGuide documentation\n% Author: Ian Kelley\n% Date: Sun Jun 02, 2002\n% $Header$\n%\n% Thorn documentation in the latex file doc/documentation.tex\n% will be included in ThornGuides built with the Cactus make system.\n% The scripts employed by the make system automatically include\n% pages about variables, parameters and scheduling parsed from the\n% relevant thorn CCL files.\n%\n% This template contains guidelines which help to assure that your\n% documentation will be correctly added to ThornGuides. More\n% information is available in the Cactus Users Guide.\n%\n% Guidelines:\n% - Do not change anything before the line\n% % START CACTUS THORNGUIDE\",\n% except for filling in the title, author, date, etc. fields.\n% - Each of these fields should only be on ONE line.\n% - Author names should be separated with a \\\\ or a comma.\n% - You can define your own macros, but they must appear after\n% the START CACTUS THORNGUIDE line, and must not redefine standard\n% latex commands.\n% - To avoid name clashes with other thorns, 'labels', 'citations',\n% 'references', and 'image' names should conform to the following\n% convention:\n% ARRANGEMENT_THORN_LABEL\n% For example, an image wave.eps in the arrangement CactusWave and\n% thorn WaveToyC should be renamed to CactusWave_WaveToyC_wave.eps\n% - Graphics should only be included using the graphicx package.\n% More specifically, with the \"\\includegraphics\" command. Do\n% not specify any graphic file extensions in your .tex file. This\n% will allow us to create a PDF version of the ThornGuide\n% via pdflatex.\n% - References should be included with the latex \"\\bibitem\" command.\n% - Use \\begin{abstract}...\\end{abstract} instead of \\abstract{...}\n% - Do not use \\appendix, instead include any appendices you need as\n% standard sections.\n% - For the benefit of our Perl scripts, and for future extensions,\n% please use simple latex.\n%\n% *======================================================================*\n%\n% Example of including a graphic image:\n% \\begin{figure}[ht]\n% \\begin{center}\n% \\includegraphics[width=6cm]{MyArrangement_MyThorn_MyFigure}\n% \\end{center}\n% \\caption{Illustration of this and that}\n% \\label{MyArrangement_MyThorn_MyLabel}\n% \\end{figure}\n%\n% Example of using a label:\n% \\label{MyArrangement_MyThorn_MyLabel}\n%\n% Example of a citation:\n% \\cite{MyArrangement_MyThorn_Author99}\n%\n% Example of including a reference\n% \\bibitem{MyArrangement_MyThorn_Author99}\n% {J. Author, {\\em The Title of the Book, Journal, or periodical}, 1 (1999),\n% 1--16. {\\tt http://www.nowhere.com/}}\n%\n% *======================================================================*\n\n% If you are using CVS use this line to give version information\n% $Header$\n\n\\documentclass{article}\n\n% Use the Cactus ThornGuide style file\n% (Automatically used from Cactus distribution, if you have a\n% thorn without the Cactus Flesh download this from the Cactus\n% homepage at www.cactuscode.org)\n\\usepackage{../../../../doc/latex/cactus}\n\n\\begin{document}\n\n% The author of the documentation\n\\author{Erik Schnetter \\textless schnetter@aei.mpg.de\\textgreater}\n\n% The title of the document (not necessarily the name of the Thorn)\n\\title{SymBase}\n\n% the date your document was last changed, if your document is in CVS,\n% please use:\n\\date{$ $Date$ $}\n\n\\maketitle\n\n% Do not delete next line\n% START CACTUS THORNGUIDE\n\n% Add all definitions used in this documentation here\n% \\def\\mydef etc\n\n% Add an abstract for this thorn's documentation\n\\begin{abstract}\nWhen the computational domain has symmetries, then it is often very\nconvenient to be able to interpolate at points that are not present on\nthe actual computational grid, but can be mapped into the grid through\nthe symmetries. Thorn SymBase provides a mechanism by which symmetry\nconditions can register routines that handle this mapping when a\nglobal interpolator is called. \n\n\\end{abstract}\n\n% The following sections are suggestive only.\n% Remove them or add your own.\n\n\n\n\\section{Introduction}\n\nThorn SymBase contains a registry for symmetry conditions and for\nsymmetry faces. Other thorns that implement symmetry boundary\nconditions register themselves with SymBase and reserve certain\nfaces of the grid, so that no other boundary condition is applied\nthere. Thorns that implement physical boundary conditions should\nquery SymBase about the set of faces that have symmetry boundary\nconditions and should not apply the physical boundary condition there.\n\n\\begin{figure}[ht]\n\\begin{center}\n\\includegraphics[scale=.833,clip=true]{fig/faces}\n\\end{center}\n\\caption[Symmetry transformations across faces] {\n\tMultiple SymBase symmetry transformations across\n\tdifferent registered symmetry faces.\n\n\tA point $x$ is transformed to point $x'$ by transformation\n\t$A$, and then to point $x''$ by transformation $B$. Data is\n\tonly actually stored for point $x''$.\n}\n\\label{SymBase.faces}\n\\end{figure}\n\nThe driver has to be aware that it calls thorn SymBase's mapping\nroutine before it actually interpolates. The whole mechanism is\ntransparent for the user.\n\n\n\n\\section{Registering Symmetry Conditions}\n\\label{SymBase.registering_symmetry_conditions}\n\nEach thorn that implements a symmetry boundary condition should\nregister itself with thorn SymBase. This has no consequences per se,\nbut it reserves a \\emph{symmetry handle} for later reference. \nThe API for registering and querying symmetry names and handles is\n\n\\begin{verbatim}\nCCTK_INT FUNCTION\n SymmetryRegister (CCTK_STRING IN sym_name)\n\nCCTK_INT FUNCTION\n SymmetryHandleOfName (CCTK_STRING IN sym_name)\n\nCCTK_POINTER_TO_CONST FUNCTION\n SymmetryNameOfHandle (CCTK_INT IN sym_handle)\n\\end{verbatim}\n\nThe routine \\texttt{SymmetryRegister} should be called in a routine\nthat has been scheduled in the schedule group\n\\texttt{SymmetryRegister}.\n\n\\begin{quote}\nNote: We have the API in the specification, we have it in the\ninterface file, in the source code, and in a header file, and I\nduplicated it into grdoc headers. I refuse to write and describe and\ncross-check the API a \\emph{sixth} time in latex. At some point, we\nhave to start using tools for that. Please read the grdoc headers or\nthe grdoc-produced HTML files for a detailed description.\n\\end{quote}\n\n\n\n\\section{Registering Symmetries for Faces}\n\nThorn SymBase keeps two registries. The first, mentioned in the\nprevious section, is the set of symmetry boundary conditions. \nThe second, the \\emph{symmetry table}, prescribes to which faces\nof the grids which symmetry boundary condition is to be applied.\nEach entry of this table constitutes a mapping from grid faces to\nsymmetry boundary conditions, described by arrays whose elements\ncorrespond to grid faces:\n\n\\begin{verbatim}\nCCTK_INT symmetry_handle[]\nCCTK_INT symmetry_zone_width[]\n\\end{verbatim}\n\nThe faces are numbered in the same way those of the \\texttt{cctk\\_bbox} array. \nEach element of \\texttt{symmetry\\_handle} is a symmetry handle as\ndescribed in section~\\ref{SymBase.registering_symmetry_conditions}. \nThe \\emph{symmetry zone} is the same as a Cactus ghost zone, just in the\ncontext of a symmetry boundary, so the \\texttt{symmetry\\_zone\\_width} will\nbe typically be the same as the ghost zone width.\n\n%Code outside SymBase should not modify these table entries.\n\nThere is one such table for the grid hierarchy, which is valid for all\ngrid functions. There is additionally one such table for each grid\narray group.\n\nThe API for registering symmetries for faces is\n\n\\begin{verbatim}\nCCTK_INT FUNCTION\n SymmetryRegisterGrid\n (CCTK_POINTER IN cctkGH,\n CCTK_INT IN sym_handle,\n CCTK_INT IN ARRAY which_faces,\n CCTK_INT IN ARRAY symmetry_zone_width)\n\nCCTK_INT FUNCTION\n SymmetryRegisterGI\n (CCTK_POINTER IN cctkGH,\n CCTK_INT IN sym_handle,\n CCTK_INT IN ARRAY which_faces,\n CCTK_INT IN ARRAY symmetry_zone_width,\n CCTK_INT IN group_index)\n\nCCTK_INT FUNCTION\n SymmetryRegisterGN\n (CCTK_POINTER IN cctkGH,\n CCTK_INT IN sym_handle,\n CCTK_INT IN ARRAY which_faces,\n CCTK_INT IN ARRAY symmetry_zone_width,\n CCTK_STRING IN group_name)\n\\end{verbatim}\n\nThe first routine registers a symmetry condition for the grid hierarchy;\nthe other two routines register for grid array groups (by index or \nname, respectively)\n\\texttt{sym\\_handle} must be a symmetry handle obtained as\ndescribed in the previous section. \\texttt{which\\_faces} and\n\\texttt{symmetry\\_zone\\_width} are arrays with one element per face,\nnumbered in the same way as the \\texttt{cctk\\_bbox} array.\n\\texttt{which\\_faces} selects which faces to register, and\n\\texttt{symmetry\\_zone\\_width} sets the number of symmetry zones for\nthese faces.\n\nThese routines may be called at anytime after \\texttt{SymmetryRegister}.\n\nIt is not possible to register multiple symmetry boundary conditions\nfor the same face.\n\n\n\n\\section{Querying Symmetries of Faces}\n\nPhysical boundary conditions need to know to which faces they should\napply the boundary condition. They need to query SymBase for the set\nof faces that have a symmetry boundary condition, and they must not\napply their physical boundary condition there. The API is\n\n\\begin{verbatim}\nCCTK_INT FUNCTION\n SymmetryTableHandleForGrid (CCTK_POINTER_TO_CONST IN cctkGH)\n\nCCTK_INT FUNCTION\n SymmetryTableHandleForGI\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN group_index)\n\nCCTK_INT FUNCTION\n SymmetryTableHandleForGN\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_STRING IN group_name)\n\\end{verbatim}\n\nThe first of these functions returns the symmetry table handle for the\ngrid hierarchy; the second and third return the that for the grid array group\n(by index or name, respectively).\n\nThe table entry with key \\texttt{symmetry\\_handle} contains the symmetry\nhandle for the symmetry boundary condition, or a negative number if the face\nhas no symmetry boundary condition associated with it.\n\nThe code to find out which boundaries should have a physical boundary\ncondition applied might look as follows:\n\n\\begin{verbatim}\n#include \"cctk.h\"\n#include \"util_Table.h\"\n\nCCTK_INT symtable;\nCCTK_INT symbnd[6];\nint face;\nint ierr;\n\nsymtable = SymmetryTableHandleForGrid (cctkGH);\nif (symtable<0)\n CCTK_VWarn(0, __LINE__, __FILE__, \"Thorn_Name\", \"symtable is out of bounds\");\n\nierr = Util_TableGetIntArray (symtable, 6, symbnd, \"symmetry_handle\");\nif (ierr!=6)\n CCTK_VWarn(0, __LINE__, __FILE__, \"Thorn_Name\", \"Util_TableGetIntArray returned error\");\n\nfor (face=0; face<6; ++face) {\n if (cctk_bbox[face] && symbnd[face]<0) {\n /* Apply physical boundary condition here */\n }\n}\n\\end{verbatim}\n\n\\hrule\n\n\\begin{verbatim}\n#include \"util_Table.h\"\n\nCCTK_INT symtable\nCCTK_INT symbnd(6)\ninteger face\ninteger ierr\n\nsymtable = SymmetryTableHandleForGrid (cctkGH)\nif (symtable<0) call CCTK_WARN (0, \"internal error\")\n\ncall Util_TableGetIntArray (ierr, int(symtable), 6, symbnd, \"symmetry_handle\")\nif (ierr/=6) call CCTK_WARN (0, \"internal error\")\n\ndo face=1,6\n if (cctk_bbox(face)/=0 .and. symbnd(face)<0) then\n ! Apply physical boundary condition here\n end if\nend do\n\\end{verbatim}\n\n\n\n\\section{Symmetry Interpolation}\n\nThe mechanism by which the grid points are mapped into the domain\nworks as follows:\n\\begin{enumerate}\n\t\\item The user calls \\texttt{CCTK\\_InterpGridArrays} with a list of\n\t coordinates.\n\t\\item The Flesh forwards this call to the driver.\n\t\\item The driver calls SymBase's aliased function,\n\t \\texttt{SymmetryInterpolate}, passing along all arguments.\n\t\\item SymBase sets a flag for each face for which a symmetry\n\t condition has been registered, and then calls\n\t \\texttt{SymmetryInterpolateFaces}, passing along all arguments.\n\t This is the beginning of a chain of recursive calls.\n\t\\item \\texttt{SymmetryInterpolateFaces} checks whether any faces are\n\t flagged.\n\t\\item If no faces are flagged, SymBase calls the driver's aliased\n\t function \\texttt{DriverInterpolate}, which performs the actual\n\t interpolation. This ends the chain of recursive calls.\n\t\\item If there are faces with symmetry conditions flagged, SymBase\n\t chooses one such face, and then calls the ``symmetry interpolation''\n\t routine of the symmetry condition registered for this face,\n\t passing along all arguments.\n\t\\item The ``symmetry interpolation'' routine maps the coordinates into\n\t the domain by applying the symmetry condition for this face. It\n\t then removes the flag for the corresponding face, and calls\n\t \\texttt{SymmetryInterpolateFaces}, passing along the arguments with\n\t the changed interpolation locations.\n\t\\item After the actual interpolation has happened in the driver, the\n\t recursive call will return. The ``symmetry interpolation'' routine\n\t then examines the tensor types of the interpolated quantities and\n\t un-maps the values back onto their original locations. That is,\n\t e.g., after a reflection on the lower $x$-boundary, $x$-components\n\t of vectors need their sign changed.\n\t\\item The chain of recursive calls unravels until the call to\n\t \\texttt{CCTK\\_InterpGridArrays} returns.\n\\end{enumerate}\n\n\n\\begin{figure}[tb]\n\\begin{center}\n\\includegraphics[scale=.833,clip=true]{fig/recursion}\n\\end{center}\n\\caption[Symmetry interpolation] {\n\t The recursive calls involved in symmetry interpolation.\n\t Values of grid functions $a$ at global Cartesian coordinates $x$ are \n\t calculated by nested calls to the symmetry interpolators, which first\n\t apply the symmetry transformation to the coordinates. When all\n\t the symmetries have been applied, the local interpolator is called,\n\t producing the interpolation of grid function values in the local basis.\n\t As the symmetry interpolators return, they apply the inverse basis\n\t transformation to the interpolated grid function values.\n}\n\\label{SymBase.recursion}\n\\end{figure}\n\nThis mechanism has thus four players:\n\\begin{itemize}\n\t\\item The driver forwards any \\texttt{CCTK\\_InterpGridArrays} call\n\t to SymBase \\texttt{SymmetryInterpolate} so that the list of\n\t interpolation points can be mapped into the domain. (See section\n\t \\ref{SymBase.driver_interaction}.)\n\t\\item Thorn SymBase controls which symmetry conditions perform this\n\t mapping on which faces.\n\t\\item Each symmetry boundary condition has to register a ``symmetry\n\t interpolation'' routine that first maps the points into the domain,\n\t then calls SymBase \\texttt{SymmetryInterpolateFaces} recursively.\n\t Before returning, it performs the inverse coordinate transformation\n\t on the interpolated quantities.\n\t\\item The user calls \\texttt{CCTK\\_InterpGridArrays}. For them\n\t the rest of the mechanism is transparent.\n\\end{itemize}\n\n\n\n\\subsection{Interaction With Symmetry Conditions}\n\nThe symmetry conditions have to register their ``symmetry\ninterpolation'' routines by calling SymBase's aliased function\n\\texttt{SymmetryRegisterGridInterpolator}. The ``symmetry\ninterpolation'' routine must use C linkage and must have the prototype\n\n\\begin{verbatim}\nCCTK_INT symmetry_interpolate\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN N_dims,\n CCTK_INT IN local_interp_handle,\n CCTK_INT IN param_table_handle,\n CCTK_INT IN coord_system_handle,\n CCTK_INT IN N_interp_points,\n CCTK_INT IN interp_coords_type,\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords,\n CCTK_INT IN N_input_arrays,\n CCTK_INT ARRAY IN input_array_indices,\n CCTK_INT IN N_output_arrays,\n CCTK_INT ARRAY IN output_array_types,\n CCTK_POINTER ARRAY IN output_arrays,\n CCTK_INT IN faces)\n\\end{verbatim}\n\nThese arguments are the same as those for \\texttt{CCTK\\_InterpGridArrays},\nexcept that here the bit field \\texttt{faces} is used to flag those faces\nthat remain to have their symmetry boundary condition applied to the\ninterpolation points. \n\nThe aliased function \\texttt{SymmetryRegisterGridInterpolator} has the\nprototype\n\n\\begin{verbatim}\nCCTK_INT FUNCTION \\\n SymmetryRegisterGridInterpolator \\\n (CCTK_POINTER IN cctkGH, \\\n CCTK_INT IN sym_handle, \\\n CCTK_INT CCTK_FPOINTER IN symmetry_interpolate \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces))\n\\end{verbatim}\n\nwhich takes a function pointer to the aforementioned ``symmetry\ninterpolation'' routine, while \\texttt{sym\\_handle} specifies which\nsymmetry condition this routine is for. This handle must have been\nobtained from \\texttt{SymmetryRegister}.\n\n\\begin{quote}\n The routine \\texttt{SymmetryRegisterGridInterpolator} must be called\n \\emph{after} the symmetry faces have been selected by the call to\n \\texttt{SymmetryRegisterGrid}.\n\\end{quote}\n\nFor convenience, the macro \\texttt{CCTK\\_ALL\\_FACES} is provided.\nIt may be used to initialize the \\texttt{faces} bit field in cases\nwhere the interpolation is to occur on all grid faces.\n\nAfter it has removed from the \\texttt{faces} variable the faces whose\nsymmetry condition it has applied, the symmetry interpolator routine\nmust call the SymBase function \\texttt{SymmetryInterpolateFaces}, which\nhas the prototype\n\n\\begin{verbatim}\nCCTK_INT FUNCTION \\\n SymmetryInterpolateFaces \\\n (CCTK_POINTER_TO_CONST IN cctkGH, \\\n CCTK_INT IN N_dims, \\\n CCTK_INT IN local_interp_handle, \\\n CCTK_INT IN param_table_handle, \\\n CCTK_INT IN coord_system_handle, \\\n CCTK_INT IN N_interp_points, \\\n CCTK_INT IN interp_coords_type, \\\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords, \\\n CCTK_INT IN N_input_arrays, \\\n CCTK_INT ARRAY IN input_array_indices, \\\n CCTK_INT IN N_output_arrays, \\\n CCTK_INT ARRAY IN output_array_types, \\\n CCTK_POINTER ARRAY IN output_arrays, \\\n CCTK_INT IN faces)\n\\end{verbatim}\n\n\n\n\\subsection{Driver Interaction}\n\\label{SymBase.driver_interaction}\n\nThe driver has to call SymBase's aliased function\n\\texttt{SymmetryInterpolate}, and has to provide an aliased function\n\\texttt{DriverInterpolate}. Both functions have prototypes similar to \n\\texttt{CCTK\\_InterpGridArrays}:\n\n\\begin{verbatim}\nCCTK_INT FUNCTION\n SymmetryInterpolate\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN N_dims,\n CCTK_INT IN local_interp_handle,\n CCTK_INT IN param_table_handle,\n CCTK_INT IN coord_system_handle,\n CCTK_INT IN N_interp_points,\n CCTK_INT IN interp_coords_type,\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords,\n CCTK_INT IN N_input_arrays,\n CCTK_INT ARRAY IN input_array_indices,\n CCTK_INT IN N_output_arrays,\n CCTK_INT ARRAY IN output_array_types,\n CCTK_POINTER ARRAY IN output_arrays)\n\\end{verbatim}\n\n\\begin{verbatim}\nCCTK_INT FUNCTION\n DriverInterpolate\n (CCTK_POINTER_TO_CONST IN cctkGH,\n CCTK_INT IN N_dims,\n CCTK_INT IN local_interp_handle,\n CCTK_INT IN param_table_handle,\n CCTK_INT IN coord_system_handle,\n CCTK_INT IN N_interp_points,\n CCTK_INT IN interp_coords_type,\n CCTK_POINTER_TO_CONST ARRAY IN interp_coords,\n CCTK_INT IN N_input_arrays,\n CCTK_INT ARRAY IN input_array_indices,\n CCTK_INT IN N_output_arrays,\n CCTK_INT ARRAY IN output_array_types,\n CCTK_POINTER ARRAY IN output_arrays)\n\\end{verbatim}\n\n\n\\section{Tensor Types}\n\nCactus supports declaring the \\emph{tensor type} of grid function\ngroups. These tensor types define how the grid functions, which are\nsupposed to be tensor components, transform under various\ntransformations, such as reflections and rotations.\n\nThe tensor types are not declared directly; instead, a \\emph{tensor\ntype alias} is declared. The following tensor type aliases are\ncurrently known and supported:\n\\begin{description}\n\\item[\\texttt{scalar}:] a scalar $\\rho$\n\\item[\\texttt{u}:] a vector $\\beta^i$\n\\item[\\texttt{d}:] a covector $s_i$\n\\item[\\texttt{dd\\_sym}:] a symmetric rank two tensor $\\gamma_{ij}$\n\\end{description}\n(More tensor type aliases are likely to be defined in the future.)\n\nIn addition to the tensor type, one can also declare the \\emph{tensor\n parity}, \\emph{tensor weight}, and a \\emph{tensor metric}. The\ntensor parity (an integer) specifies the behaviour under reflections.\nScalars and polar vectors have a parity $+1$, pseudo scalars and axial\nvectors have a parity $-1$. The tensor weight (a real number)\nspecifies the behaviour under transformations that change the volume\nelement. The tensor metric (a string) specifies what metric has to be\nused to raise or lower indices for that quantity.\n\nLast but not least, a \\emph{tensor special} can be defined for\nquantities that do not transform as tensor. The currently supported\ntensor specials are\n\\begin{description}\n\\item[\\texttt{Gamma}:]\n for the transformation behaviour of the $\\Gamma^i$ variables of the\n BSSN formalism; it is $\\Gamma^i := - \\gamma^{jk} \\Gamma^i_{jk}$\n with $\\Gamma^i_{jk} := \\frac{1}{2} \\gamma^{il} \\left( \\partial_k\n \\gamma_{lj} + \\partial_j \\gamma_{lk} - \\partial_l \\gamma_{jk}\n \\right)$\n\\item[\\texttt{log}:]\n for the transformation behaviour of the variable $\\phi$ of the BSSN\n formalism; it is $\\phi := \\log \\psi$ with $\\psi^{12} := \\det\n \\gamma_{ij}$.\n\\end{description}\n\nBy default, the basis with respect to which the tensor components are\ngiven is supposed to be the (local) coordinate system given by the\ngrid, i.e., the coordinate directions are the ``natural'' directions\nof the grid. It is possible to specify a different basis by declaring\na \\emph{tensor basis}, which is the name of a grid function group\ncontaining the coordinate system.\n\n\\subsection{Example Tensor Type Declarations}\n\nFrom CactusWave/WaveToy:\n\\begin{verbatim}\nCCTK_REAL scalarevolve TYPE=gf TAGS='tensortypealias=\"scalar\"'\n\\end{verbatim}\n\nFrom CactusEinstein/ADMBase:\n\\begin{verbatim}\nCCTK_REAL metric TYPE=gf TAGS='tensortypealias=\"dd_sym\" tensormetric=\"ADMBase::metric\"'\nCCTK_REAL curv TYPE=gf TAGS='tensortypealias=\"dd_sym\" tensormetric=\"ADMBase::metric\"'\nCCTK_REAL lapse TYPE=gf TAGS='tensortypealias=\"scalar\" tensormetric=\"ADMBase::metric\"'\nCCTK_REAL shift TYPE=gf TAGS='tensortypealias=\"U\" tensormetric=\"ADMBase::metric\"'\n\\end{verbatim}\n\nFrom AEIThorns/BSSN\\_MoL:\n\\begin{verbatim}\nCCTK_REAL ADM_BSSN_B TYPE=gf \\\n TAGS='tensortypealias=\"u\" tensormetric=\"ADMBase::metric\"'\nCCTK_REAL ADM_BSSN_dtlapse TYPE=gf \\\n TAGS='tensortypealias=\"scalar\" tensormetric=\"ADMBase::metric\"'\nCCTK_REAL ADM_BSSN_phi TYPE=gf \\\n TAGS='tensortypealias=\"scalar\" tensormetric=\"BSSN_MoL::ADM_BSSN_metric\" \\\n tensorweight=0.16666666666666667 tensorspecial=\"log\"'\nCCTK_REAL ADM_BSSN_metric TYPE=gf \\\n TAGS='tensortypealias=\"dd_sym\" tensormetric=\"BSSN_MoL::ADM_BSSN_metric\" \\\n tensorweight=-0.66666666666666667'\nCCTK_REAL ADM_BSSN_K TYPE=gf \\\n TAGS='tensortypealias=\"scalar\" tensormetric=\"BSSN_MoL::ADM_BSSN_metric\"'\nCCTK_REAL ADM_BSSN_curv TYPE=gf \\\n TAGS='tensortypealias=\"dd_sym\" tensormetric=\"BSSN_MoL::ADM_BSSN_metric\" \\\n tensorweight=-0.66666666666666667'\nCCTK_REAL ADM_BSSN_gamma TYPE=gf \\\n TAGS='tensortypealias=\"u\" tensormetric=\"BSSN_MoL::ADM_BSSN_metric\" \\\n tensorweight=0.66666666666666667 tensorspecial=\"Gamma\"'\n\\end{verbatim}\n\n% Do not delete next line\n% END CACTUS THORNGUIDE\n\n\\end{document}\n", |
| "fig/faces.pdf": "%PDF-1.3\n%\uc3e2\n5 0 obj\n<</Length 6 0 R/Filter /FlateDecode>>\nstream\nxXK\u00147\u0010N+|# 1H\u0011\\ +\u5316\u0005v ,HU=;=\u000b\u0003+$\u001e\u0134mWq\u000b7\u001f{vz3pq1SD\u0014\u001f\u0017 '{z\u001cY\b/\u007fW\u00139{p~z|\u001e8*\u0005\"W}\f^l7)'~g?\u03e6GSW\u001e\u000f6\u032f\u0003\u0015\fH\nq\n])\\<\u04caA\u0000\uc894\u0002r%|6\u00006\u01a5\u001e\u0001\u03cam\u0002\u000bwvl\u00018q\u001b\u001b'I6!\u0000\f.\u0016XagA+`)8\nXJJ>dl\bJAh\u0430[1&PJA\u0014\u0014[j\u0002XS\u001a\u04b2\u0013CV\u000bcq^Ne]P \u001as\u0005\u00149\u955c}\nBQ\tA(*lrKk\u0633\u001dW\u0001`+\u0007P\u000fD-\u0010Y\u0019I\u0015cH\u0003#\u001d\u0007BSp S\u0018\u001aKU^%`\u001f5F\u0013=UYZ|*`J\u0016[fGa\u0001ik\u0012\fV\u0002\u0017\u0004<E\u0018V c\u0011K%\u0001\n\uc48co7\u001a\u0014\u0273\u000e\u00069=\u0005\"JAZ\u000e$[tTSRQ\u001e\u0004z\u0004EGnTRD\u001c\u161dd\\)\u044cB\u0013 \u0015j\u0002\u0001+a\u000bB&Nn\u0377@\u0261.7\u0014\u0014f\u07caQ\":\u0004\u0017\f5A\u000b\u00041dP\u0012RE\u001bj\u0004\n*7FO\u0011r\u0000i\u0002,#edJZ\u0006k\u001cU\\pqIpi\n=\u0005\u0000v\u000fO\u0002\u0001Zo\b)2\u001bDWSUSaR\u0011[\f\"#v3DVp:\f%4\u000e\np'\u0015D\n!\u017b\u0004\u0004A\u0007o\u0011$}\u0007}\u00022.\u0016\u06f0\u0500D\u06e756\b\t\u0000Pu\u0002b\fiAX)l\u000fH i<\u0012`\u0005\u000b\\fjpwg\n\u0012i\"abi$+\tY7SI\u0011\u0015G26CmXNj*@h\u0012{vo/+q{\u0001}>]4|k5\\\u0019N\n^\u05c2\u027b'\u07f7W\u0017O\u0002aGa9\u007fW\u0017\u0017W\u0017K}9 \u0016\u0012\u0012\u0014\u0004h\u0003b\u0000,d\u0001R\u0004W\u0002EXQH\u0002\u0004~,\u001cTh\b[\u01601a\u00014\u0260/\u0002\n\u0010\n#=L\u0206A\u00155+\u0018sL|\u0010|Br@%uGDo@DG\nD R\u0760Y@pb\t6o\u0015Ve\u0001x_r\u065bn:(I,p\u0010CrY)nU\n.\t[=\u000fuW\u007f){Z\u001c-\u001cGHd\u00112^]\u0015X\u0010\u0005,\u0320O\u0015;r4Hj}rj\\G\u050fG%PL\u0004\u0005,R\u0003}Ltm\\\u0016Bm\u0019y\\.qjEG\u0001]\u0004S(wPZ[\u046f\u0004Z6&\u00045y\\\u0011\u0004\u02e1A8Ygl}\tNCm\u0001<-(\u0015\u0011\u0010e\u00113hP.WJBS\u0013\n\u02e9r)l\nD\bhn\u0003}##\u0014HJ\nj@%pG\u0014\u0017r\u0012\u001d{w_P.\u0406'0\u0019;{nJB\u0006N\u060b?\u0005\u02c8\u0006RW*\u0004po\\\u0005=l^19b1\u013dKZ#g,JaW\u0005V\u000e\n\u0015\u0004\u0013\u0521e'Agf8\u0017e\u0010NQ>\u001f\u001fc0\u0018k\u001cEXv\".7\u001c(q>`y{\u001d4[*\u0584\u001b\u000fg4\f\u0015A=VJtl:N\u0015\u007f{aA'C[\u000b<\u0013h\u0010}0X\u001b\";\n\u05d54\"YlnA\u00024{WAtP\u000f1!+\u0002Vg\u0665c\ta!z\u0010\\03\u000b\u0018\u0014:@.7-\u0018\u0006ye\u0018\u001b\u0003->iM:Y*\u000ft\u001a<>jGWendstream\nendobj\n6 0 obj\n1745\nendobj\n4 0 obj\n<</Type/Page/MediaBox [0 0 251 251]\n/Parent 3 0 R\n/Resources<</ProcSet[/PDF /Text]\n/ExtGState 43 0 R\n/Font 44 0 R\n>>\n/Contents 5 0 R\n>>\nendobj\n3 0 obj\n<< /Type /Pages /Kids [\n4 0 R\n] /Count 1\n>>\nendobj\n1 0 obj\n<</Type /Catalog /Pages 3 0 R\n>>\nendobj\n7 0 obj\n<</Type/ExtGState\n/OPM 1>>endobj\n43 0 obj\n<</R7\n7 0 R>>\nendobj\n44 0 obj\n<</R30\n30 0 R/R11\n11 0 R/R40\n40 0 R/R21\n21 0 R/R27\n27 0 R/R8\n8 0 R/R17\n17 0 R/R37\n37 0 R/R18\n18 0 R/R14\n14 0 R/R33\n33 0 R/R24\n24 0 R/R34\n34 0 R>>\nendobj\n39 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n20 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n16 0 obj\n<</Filter/FlateDecode/Length 217>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\n\u001d\"V|MN<>Yt\u00a4I=\u0016^\u04a8Us79t)tA\u02fad\u06a3g\u0014G+tg\u9480\"vg%f\u001a\u033a0AS!+\u000b\u0000\u0006YB\nendstream\nendobj\n25 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n35 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n26 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n31 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n36 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n12 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n32 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n13 0 obj\n<</Filter/FlateDecode/Length 201>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\n\u001d\")\u001c7Y\u0014\u0001q1\u0010\u00142)D+wls\u0017)\u0012Ow\u0011\u0013\u0004O\u00019 ;\b&\u019c>2\u001e\f\n\u001c\\\n\\\\\u0000@\u0014\nendstream\nendobj\n41 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n22 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n23 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n42 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n28 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n9 0 obj\n<</Filter/FlateDecode/Length 50>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+\u0001\u0659\\0E\\i\\\\\u0000m\fn\nendstream\nendobj\n29 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n10 0 obj\n<</Filter/FlateDecode/Length 161>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0015*\u0018B\u001b(\u001a\u0019@Br.'BIQi*~\u0001\u0007t\npV0w62wwvv\u0003r\u0003ll\u0015t29y@vv\\.\nj\u0004\\U2\tJmYd\u06a4(L\u0018\u0010\u0015\u0005\u0000\u0016Z0'\nendstream\nendobj\n38 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n19 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n15 0 obj\n<</Filter/FlateDecode/Length 48>>stream\nx3T0\u0000CC L1*\u0002qr@\u00029\\P\u0000Hfp+q\u0016rq\u0005r\u0001\u0000c\u0001\u000b\nendstream\nendobj\n30 0 obj\n<</Type/Font\n/Encoding 45 0 R/CharProcs <</1 32 0 R\n/0 31 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n45 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n11 0 obj\n<</Type/Font\n/Encoding 46 0 R/CharProcs <</1 13 0 R\n/0 12 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n46 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n40 0 obj\n<</Type/Font\n/Encoding 47 0 R/CharProcs <</1 42 0 R\n/0 41 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n47 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n21 0 obj\n<</Type/Font\n/Encoding 48 0 R/CharProcs <</1 23 0 R\n/0 22 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n48 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n27 0 obj\n<</Type/Font\n/Encoding 49 0 R/CharProcs <</1 29 0 R\n/0 28 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n49 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n8 0 obj\n<</Type/Font\n/Encoding 50 0 R/CharProcs <</1 10 0 R\n/0 9 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n50 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n17 0 obj\n<</BaseFont/Times-Roman/Type/Font\n/Subtype/Type1>>\nendobj\n37 0 obj\n<</Type/Font\n/Encoding 51 0 R/CharProcs <</1 39 0 R\n/0 38 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n51 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n18 0 obj\n<</Type/Font\n/Encoding 52 0 R/CharProcs <</1 20 0 R\n/0 19 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n52 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n14 0 obj\n<</Type/Font\n/Encoding 53 0 R/CharProcs <</1 16 0 R\n/0 15 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n53 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n33 0 obj\n<</BaseFont/Times-Italic/Type/Font\n/Subtype/Type1>>\nendobj\n24 0 obj\n<</Type/Font\n/Encoding 54 0 R/CharProcs <</1 26 0 R\n/0 25 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n54 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n34 0 obj\n<</Type/Font\n/Encoding 55 0 R/CharProcs <</1 36 0 R\n/0 35 0 R\n>>/FontMatrix[1 0 0 1 0 0]/FontBBox[0 0 1 1]/FirstChar 0/LastChar 1/Widths[\n1 1]\n/Subtype/Type3>>\nendobj\n55 0 obj\n<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[\n0/0/1]>>\nendobj\n2 0 obj\n<</Producer(ESP Ghostscript 815.03)\n/CreationDate(D:20090202090408)\n/ModDate(D:20090202090408)>>endobj\nxref\n0 56\n0000000000 65535 f \n0000002060 00000 n \n0000009215 00000 n \n0000002001 00000 n \n0000001850 00000 n \n0000000015 00000 n \n0000001830 00000 n \n0000002108 00000 n \n0000007522 00000 n \n0000005303 00000 n \n0000005648 00000 n \n0000006482 00000 n \n0000003887 00000 n \n0000004231 00000 n \n0000008367 00000 n \n0000006107 00000 n \n0000002799 00000 n \n0000007780 00000 n \n0000008107 00000 n \n0000005992 00000 n \n0000002570 00000 n \n0000007002 00000 n \n0000004615 00000 n \n0000004730 00000 n \n0000008695 00000 n \n0000003084 00000 n \n0000003314 00000 n \n0000007262 00000 n \n0000005188 00000 n \n0000005419 00000 n \n0000006222 00000 n \n0000003543 00000 n \n0000004002 00000 n \n0000008627 00000 n \n0000008955 00000 n \n0000003199 00000 n \n0000003658 00000 n \n0000007847 00000 n \n0000005877 00000 n \n0000002341 00000 n \n0000006742 00000 n \n0000004500 00000 n \n0000004959 00000 n \n0000002149 00000 n \n0000002179 00000 n \n0000006398 00000 n \n0000006658 00000 n \n0000006918 00000 n \n0000007178 00000 n \n0000007438 00000 n \n0000007696 00000 n \n0000008023 00000 n \n0000008283 00000 n \n0000008543 00000 n \n0000008871 00000 n \n0000009131 00000 n \ntrailer\n<< /Size 56 /Root 1 0 R /Info 2 0 R\n/ID [(S\\(\u0006%P.\u0019Sk=)(S\\(\u0006%P.\u0019Sk=)]\n>>\nstartxref\n9326\n%%EOF\n", |
| "fig/recursion.fig": "#FIG 3.2 Produced by xfig version 3.2.5-alpha5\nPortrait\nCenter\nMetric\nA4 \n100.00\nSingle\n-2\n1200 2\n6 0 0 6840 4140\n6 2790 1440 3510 1620\n2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2\n\t1 1 1.00 45.00 90.00\n\t 2925 1575 3240 1575\n4 0 0 50 -1 1 12 0.0000 4 150 195 3285 1620 x''\\001\n4 0 0 50 -1 1 12 0.0000 4 150 195 2790 1620 x' \\001\n-6\n6 1170 945 1845 1125\n2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2\n\t1 1 1.00 45.00 90.00\n\t 1305 1080 1620 1080\n4 0 0 50 -1 1 12 0.0000 4 105 150 1170 1125 x \\001\n4 0 0 50 -1 1 12 0.0000 4 150 150 1665 1125 x'\\001\n-6\n6 2880 3015 3600 3195\n2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2\n\t1 1 1.00 45.00 90.00\n\t 3330 3150 3015 3150\n4 0 0 50 -1 1 12 0.0000 4 150 195 2880 3195 a' \\001\n4 0 0 50 -1 1 12 0.0000 4 150 195 3375 3195 a''\\001\n-6\n6 1170 3465 1845 3645\n2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2\n\t1 1 1.00 45.00 90.00\n\t 1620 3600 1305 3600\n4 0 0 50 -1 1 12 0.0000 4 150 150 1665 3645 a'\\001\n4 0 0 50 -1 1 12 0.0000 4 105 150 1170 3645 a \\001\n-6\n2 1 0 1 0 7 0 -1 20 0.000 0 0 7 0 0 8\n\t 2025 1305 2340 1305 2340 1215 2610 1350 2340 1485 2340 1395\n\t 2025 1395 2025 1305\n2 1 1 1 0 7 50 -1 0 4.000 0 0 -1 0 0 2\n\t 0 2340 6840 2340\n2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5\n\t 4140 1395 6120 1395 6120 3015 4140 3015 4140 1395\n2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2\n\t1 1 1.00 45.00 90.00\n\t 4545 2205 4545 2520\n2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5\n\t 2475 900 6435 900 6435 3510 2475 3510 2475 900\n2 2 0 1 0 7 50 -1 -1 0.000 0 0 -1 0 0 5\n\t 855 405 6750 405 6750 4005 855 4005 855 405\n2 1 0 1 0 7 50 -1 20 0.000 0 0 -1 0 0 8\n\t 3690 1800 4005 1800 4005 1710 4275 1845 4005 1980 4005 1890\n\t 3690 1890 3690 1800\n2 1 0 1 0 7 50 -1 20 0.000 0 0 -1 0 0 8\n\t 4275 2790 3960 2790 3960 2700 3690 2835 3960 2970 3960 2880\n\t 4275 2880 4275 2790\n2 1 0 1 0 7 50 -1 20 0.000 0 0 -1 0 0 8\n\t 2610 3285 2295 3285 2295 3195 2025 3330 2295 3465 2295 3375\n\t 2610 3375 2610 3285\n2 1 0 1 0 7 50 -1 20 0.000 0 0 -1 0 0 8\n\t 990 3780 675 3780 675 3690 405 3825 675 3960 675 3870\n\t 990 3870 990 3780\n2 1 0 1 0 7 50 -1 20 0.000 0 0 7 0 0 8\n\t 405 810 720 810 720 720 990 855 720 990 720 900\n\t 405 900 405 810\n4 0 0 50 -1 0 12 0.0000 4 195 510 45 180 global\\001\n4 0 0 50 -1 1 12 0.0000 4 105 150 45 675 x \\001\n4 0 0 50 -1 0 12 0.0000 4 165 870 1170 675 symmetry\\001\n4 0 0 50 -1 1 12 0.0000 4 150 135 2025 675 A\\001\n4 0 0 50 -1 0 12 0.0000 4 165 870 2790 1170 symmetry\\001\n4 0 0 50 -1 1 12 0.0000 4 150 120 3645 1170 B\\001\n4 0 0 50 -1 1 12 0.0000 4 105 150 0 4140 a \\001\n4 0 0 50 -1 0 12 0.0000 4 195 1515 4455 1710 local interpolation\\001\n4 0 0 50 -1 1 12 0.0000 4 150 240 4500 2160 x'' \\001\n4 0 0 50 -1 1 12 0.0000 4 150 195 4500 2700 a''\\001\n-6\n", |
| "fig/recursion.pdf": "%PDF-1.3\n%\uc3e2\n5 0 obj\n<</Length 6 0 R/Filter /FlateDecode>>\nstream\nxWn\u001b7\u0014Wp8o\u0001\u0002E7M\u0004t\u0011d:bd7&\u007fs9\"Hj!x1\u0599\"g(-\u007fvmTW_\u03c3V\u001cX /YS^`rY`\fi\u000fq>Cl&\u0007`V:\u0004L\u0000`G<\u0012f?_Qd^;\u0018uSI\u0790\u0342\u00042|7\u00018\u007f\u0011s\n.9\u0018F+dL\u001e\u0017[f%\u0005sPO\u00d4RXGJ\fwBx\u001d^}]\u007f\u000f\u0590IZ$\u001f\u0005U\u01bd<\u0000g)()\ud8f3\udd89Rj!\t\u0003\u000e\u0001FL,*6]\u000bG\u0000\u0012\u000eMh\u0012\u0001.Nfz_\u001d-#YzyZ##9kJ\u001c\u0373\u000f~,&'dVEXM\u0289b\u0003\u0006D9L\u017b.\u0089\n\u0016F\u0185M6:\u0010\"\u0013\u0019)}ep3y$K/\u03e6IL\u0018\u001549\u0017J\u9357tnV/g\u000fV`)\u0004qL\u0002\\oh8#\u05932}w\u0010\u0019&\u00184\u02fbv\u05b2rke\u001d-kCd\u007f$U{1)\u0510\u001by\ue8b8r\u0019\u001c6C\u039aH4\u001c\uef72bv\u0003L||;(M\u001c\f&TR\u0011\"c0*\u0018\u000fR}\u0012\u03ed0N>be\u04b6v\u0016KpJ\u0005\u000ft\u0002Pq\u029etz7\udb92\ude02n\u0571,+eK'8\u001e{\u001f\u0014!)\u0007@{eLl!\u0004IJ\u0002<r}VxfX\u2818C\u00132ReRl-\u001c%\u0292<j,3\u0002sBDE;T{/c\u0003dzq \u0005iHu%\u0017uZ\u0011\u0265W\tL)!iT`@Fp%\u0019Yl,\u0012] \f$UQ\\D#\u0013\ndeTHTd\u0001\"cCp\u0012alA\u000f-#Cu2E6\u001e\u0258\u0012cu\u0000fOO* \"\u0003\u001eS/r*ca\n3B,9\f@@\u000f\u0007k;\u0019L-XL\u0014\n)%\\N*b\u0578\fX\"\n\u0010c\u06d0Cc]Md\u00032(iK=I=eh>\u0002iN+gMXV\u0017\n\u0085M\\w\u007fmF!\u000fO(H\u0017\u0007(X=5\u001a\u001f_m\u000f\u0018B\u0017$a\u03d3#S\u000e\u001cKP5NC\u0016\u0014:XRyD:u3Npv#\t\u001b\"7]lFuspy\u0778y\u0015:\u000b\u000fB\ub777\u000f\u0017\u056e1\u0012m\t^M\\m:RPn3,\u0016g@C\u0019\u0011\u0019b7BHA6v'\u0013\u0012dz \u000bs7!\u0555\u04ca\u8eb0\u0000B\u0013endstream\nendobj\n6 0 obj\n1164\nendobj\n4 0 obj\n<</Type/Page/MediaBox [0 0 433 262]\n/Parent 3 0 R\n/Resources<</ProcSet[/PDF /Text]\n/ExtGState 10 0 R\n/Font 11 0 R\n>>\n/Contents 5 0 R\n>>\nendobj\n3 0 obj\n<< /Type /Pages /Kids [\n4 0 R\n] /Count 1\n>>\nendobj\n1 0 obj\n<</Type /Catalog /Pages 3 0 R\n>>\nendobj\n7 0 obj\n<</Type/ExtGState\n/OPM 1>>endobj\n10 0 obj\n<</R7\n7 0 R>>\nendobj\n11 0 obj\n<</R9\n9 0 R/R8\n8 0 R>>\nendobj\n9 0 obj\n<</BaseFont/Times-Roman/Type/Font\n/Subtype/Type1>>\nendobj\n8 0 obj\n<</BaseFont/Times-Italic/Type/Font\n/Subtype/Type1>>\nendobj\n2 0 obj\n<</Producer(ESP Ghostscript 815.03)\n/CreationDate(D:20090202090408)\n/ModDate(D:20090202090408)>>endobj\nxref\n0 12\n0000000000 65535 f \n0000001479 00000 n \n0000001770 00000 n \n0000001420 00000 n \n0000001269 00000 n \n0000000015 00000 n \n0000001249 00000 n \n0000001527 00000 n \n0000001703 00000 n \n0000001637 00000 n \n0000001568 00000 n \n0000001598 00000 n \ntrailer\n<< /Size 12 /Root 1 0 R /Info 2 0 R\n/ID [(3}7\\\\\u0019tuFpU!)(3}7\\\\\u0019tuFpU!)]\n>>\nstartxref\n1881\n%%EOF\n", |
| "fig/faces.fig": "#FIG 3.2 Produced by xfig version 3.2.5-alpha5\nPortrait\nCenter\nMetric\nA4 \n100.00\nSingle\n-2\n1200 2\n6 0 0 3960 3960\n5 1 0 1 0 7 10 -1 -1 0.000 0 0 1 0 1986.667 1093.333 1440 675 1980 405 2565 720\n\t2 1 1.00 75.00 120.00\n6 1305 765 2655 855\n1 3 0 1 0 0 2 -1 45 0.000 1 0.0000 1350 810 45 45 1350 810 1395 810\n1 3 0 0 0 0 2 -1 45 0.000 1 0.0000 2610 810 45 45 2610 810 2655 810\n-6\n6 1440 765 1665 990\n2 2 0 1 7 7 5 -1 45 0.000 0 0 -1 0 0 5\n\t 1440 990 1665 990 1665 765 1440 765 1440 990\n4 0 0 4 -1 1 12 0.0000 4 150 150 1485 945 x'\\001\n-6\n6 2700 810 2970 1035\n2 2 0 1 7 7 5 -1 45 0.000 0 0 -1 0 0 5\n\t 2700 1035 2925 1035 2925 810 2700 810 2700 1035\n4 0 0 4 -1 1 12 0.0000 4 150 195 2745 990 x''\\001\n-6\n6 1395 2970 1620 3195\n2 2 0 1 7 7 5 -1 45 0.000 0 0 -1 0 0 5\n\t 1395 3195 1620 3195 1620 2970 1395 2970 1395 3195\n4 0 0 4 -1 1 12 0.0000 4 105 105 1440 3150 x\\001\n-6\n6 765 990 990 1215\n2 2 0 1 7 7 5 -1 45 0.000 0 0 -1 0 0 5\n\t 765 1215 990 1215 990 990 765 990 765 1215\n4 0 0 4 -1 1 12 0.0000 4 150 135 810 1170 A\\001\n-6\n6 2340 225 2565 450\n2 2 0 1 7 7 5 -1 45 0.000 0 0 -1 0 0 5\n\t 2340 450 2565 450 2565 225 2340 225 2340 450\n4 0 0 4 -1 1 12 0.0000 4 150 120 2385 405 B\\001\n-6\n6 90 135 3870 3870\n2 2 0 0 0 7 50 -1 45 0.000 0 0 -1 0 0 5\n\t 90 135 1980 135 1980 1980 90 1980 90 135\n2 2 0 0 0 7 50 -1 44 0.000 0 0 -1 0 0 5\n\t 1980 1980 3870 1980 3870 3870 1980 3870 1980 1980\n2 2 0 0 0 7 50 -1 46 0.000 0 0 -1 0 0 5\n\t 90 1980 1980 1980 1980 3870 90 3870 90 1980\n-6\n6 0 0 3960 3960\n2 1 0 1 -1 7 4 -1 -1 0.000 0 0 -1 0 0 2\n\t 0 1980 3960 1980\n2 1 0 1 0 7 4 -1 -1 0.000 0 0 -1 0 0 2\n\t 1980 0 1980 3960\n-6\n1 3 0 0 0 0 2 -1 45 0.000 1 0.0000 1305 2970 45 45 1305 2970 1350 2970\n3 2 0 1 0 -1 50 -1 -1 0.000 0 1 0 3\n\t2 1 1.00 75.00 120.00\n\t 1220 2923 770 1978 1265 898\n\t 0.000 -1.000 0.000\n4 0 0 50 -1 0 12 0.0000 4 150 1140 2250 1515 data is stored\\001\n4 0 0 50 -1 0 12 0.0000 4 195 1560 2250 1305 component where\\001\n-6\n" |
| } |
| } |