diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-02-09 17:37:09 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 1999-02-09 17:37:09 +0000 |
commit | e8d1c78b05303f7f09c7ae9cca7fb6fe2d0d5df8 (patch) | |
tree | fcf1959b92b115106b18ba2840593ddd11b1990a /src/main/Groups.c | |
parent | 381d25a4587988af122cb513496dd0d19075e2c3 (diff) |
Added CCTK_DecomposeGroupName which will take a group name of the form
implementation::group and return the implementation and the group.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@231 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Groups.c')
-rw-r--r-- | src/main/Groups.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index efc904a8..cfb07de3 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -500,6 +500,20 @@ int CCTK_GetGroupData(int group, int *gtype, int *vtype, int *dim, int *n_variab return return_code; } + /*@@ + @routine CCTK_GetVarName + @date Tue Feb 9 15:34:56 1999 + @author Tom Goodale + @desc + Gets the name of a variable. + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ char *CCTK_GetVarName(int varnum) { char *name; @@ -511,3 +525,23 @@ char *CCTK_GetVarName(int varnum) return name; } + + + /*@@ + @routine CCTK_DecomposeGroupName + @date Tue Feb 9 15:39:14 1999 + @author Tom Goodale + @desc + Decomposes a group name of the form imp::group + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ +int CCTK_DecomposeGroupName(const char *fullname, char **implementation, char **name) +{ + return CCTK_SplitString(implementation, name, fullname, "::"); +} |