summaryrefslogtreecommitdiff
path: root/src/main/Groups.c
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-08-25 14:18:10 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2005-08-25 14:18:10 +0000
commit54304e71740f558d3d8258a96bc2f1a7e9634cc9 (patch)
tree13e928c5210cb77435cc2e28d857e4d3c1c69834 /src/main/Groups.c
parent96615e830e211991fb1fac2704fc9d97fbc26738 (diff)
Add Cactus variable type CCTK_POINTER_TO_CONST
Complete the implementation of the Cactus variable type CCTK_POINTER_TO_CONST. Define a constant CCTK_VARIABLE_POINTER_TO_CONST. Handle this variable when asking for its name and its size. Allow values of this type in tables. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4113 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Groups.c')
-rw-r--r--src/main/Groups.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c
index 3c6f8419..605215fb 100644
--- a/src/main/Groups.c
+++ b/src/main/Groups.c
@@ -931,6 +931,10 @@ const char *CCTK_VarTypeName (int vtype)
retval = "CCTK_VARIABLE_POINTER";
break;
+ case CCTK_VARIABLE_POINTER_TO_CONST:
+ retval = "CCTK_VARIABLE_POINTER_TO_CONST";
+ break;
+
case CCTK_VARIABLE_FPOINTER:
retval = "CCTK_VARIABLE_FPOINTER";
break;
@@ -1943,6 +1947,10 @@ int CCTK_VarTypeSize (int vtype)
var_size = sizeof (CCTK_POINTER);
break;
+ case CCTK_VARIABLE_POINTER_TO_CONST:
+ var_size = sizeof (CCTK_POINTER_TO_CONST);
+ break;
+
case CCTK_VARIABLE_FPOINTER:
var_size = sizeof (CCTK_FPOINTER);
break;