diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-03-22 13:05:19 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-03-22 13:05:19 +0000 |
commit | 94d556fd83a6be0a3a5d1f7e026e1fcca34408db (patch) | |
tree | 3e8916a85caa8341074bc535ba53e39b95842329 /src/main/Groups.c | |
parent | ff3999de44974cc1c76367b72916a74dbc54d16f (diff) |
Added CCTK_GetNumVarsInGroup
git-svn-id: http://svn.cactuscode.org/flesh/trunk@411 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Groups.c')
-rw-r--r-- | src/main/Groups.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index 4b1434b8..f77e7101 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -752,6 +752,19 @@ int CCTK_GetFirstVarNum(int group) } } + +int CCTK_GetNumVarsInGroup(int group) +{ + if (0 <= group && group<n_groups) + { + return groups[group].n_variables; + } + else + { + return -1; + } +} + int CCTK_GetVarGType(int var) { int gtype; |