summaryrefslogtreecommitdiff
path: root/src/main/Groups.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-13 16:16:43 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-02-13 16:16:43 +0000
commit64c33883db47bc91de02b465c2e9bacae75f6c73 (patch)
treea3732b37f438604ce5f938448aae70091126c8b5 /src/main/Groups.c
parent574be623649e2ae454a15de81fd74534932f21c3 (diff)
Added functions to get the group-type and variable type for a given variable.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@248 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Groups.c')
-rw-r--r--src/main/Groups.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c
index f2b0d37d..7f2f092d 100644
--- a/src/main/Groups.c
+++ b/src/main/Groups.c
@@ -564,3 +564,27 @@ int CCTK_GetFirstVarNum(int group)
{
return groups[group].variables[0].number;
}
+
+int CCTK_GetVarGType(int var)
+{
+ int gtype;
+ int group;
+
+ group = group_of_variable[var];
+
+ gtype = groups[group].gtype;
+
+ return gtype;
+}
+
+int CCTK_GetVarVType(int var)
+{
+ int vtype;
+ int group;
+
+ group = group_of_variable[var];
+
+ vtype = groups[group].vtype;
+
+ return vtype;
+}