aboutsummaryrefslogtreecommitdiff
path: root/src/Symmetry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Symmetry.c')
-rw-r--r--src/Symmetry.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Symmetry.c b/src/Symmetry.c
index d6f853f..c4363b0 100644
--- a/src/Symmetry.c
+++ b/src/Symmetry.c
@@ -50,10 +50,10 @@ void SetSymmetry(cGH *GH, int sx, int sy, int sz, const char *imp_gf) {
int index;
/* Pointer to the SymmetryGHextension */
- sGHex = (SymmetryGHex *)GH->extensions[CCTK_GetGHExtensionHandle("Symmetry")];
+ sGHex = (SymmetryGHex *)GH->extensions[CCTK_GHExtensionHandle("Symmetry")];
/* now that we have the same, get the index to the GFs */
- index = CCTK_GetVarIndex(imp_gf);
+ index = CCTK_VarIndex(imp_gf);
if (index<0) {
CCTK_WARN(0,"Grid function has no index");
};
@@ -155,7 +155,7 @@ void ApplySymmetry(cGH *GH, char *imp_group) {
if (CCTK_Equals(symmetry,"full")) return;
/* Get the pointer to the Symmetry GH extension */
- sGHex = (SymmetryGHex*)GH->extensions[CCTK_GetGHExtensionHandle("Symmetry")];
+ sGHex = (SymmetryGHex*)GH->extensions[CCTK_GHExtensionHandle("Symmetry")];
#ifdef DEBUG_BOUND
printf("\n In ApplySymmetry\n -----------\n");
@@ -163,7 +163,7 @@ void ApplySymmetry(cGH *GH, char *imp_group) {
#endif
/* Get the group number */
- groupnum = CCTK_GetGroupIndex(imp_group);
+ groupnum = CCTK_GroupIndex(imp_group);
if (groupnum < 0)
{
char *message=NULL;
@@ -174,14 +174,14 @@ void ApplySymmetry(cGH *GH, char *imp_group) {
}
/*get the index of the first GF in the group and how many Vars there are*/
- first = CCTK_GetFirstVarIndex_ByIndex(groupnum);
- last = first+CCTK_GetNumVarsInGroup_ByIndex(groupnum)-1;
+ first = CCTK_FirstVarIndexI(groupnum);
+ last = first+CCTK_NumVarsInGroupI(groupnum)-1;
/* loop over the variables in the group */
for (index=first; index<=last; index++) {
/* and check that we actually have a grid function (and not a scalar)*/
- if (CCTK_GetVarGType(index) == GROUP_GF) {
+ if (CCTK_GroupTypeFromVarI(index) == GROUP_GF) {
/*at this point, there should be NO ESYM_UNSET anymore
if there is, we forgot to register the symmetries for a GF */