summaryrefslogtreecommitdiff
path: root/src/schedule
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-02-17 17:28:31 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-02-17 17:28:31 +0000
commit08dc979087660675bc153de2dedd93526dd3b786 (patch)
tree95c5ab5b6e5166c06bb249f8456b225c78ddcb3d /src/schedule
parent79673464abf45b44c52656b55c9e5d50df61fd3a (diff)
Now scheduling a group AS preserves the identity of the group, allowing
people to schedule in the real name and then schedule many aliases of the group in the same schedule bin or parent group. Note that you need to do a make <config>-rebuild on your configurations after updating with this change. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@3147 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/schedule')
-rw-r--r--src/schedule/ScheduleCreater.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/schedule/ScheduleCreater.c b/src/schedule/ScheduleCreater.c
index 3b512be0..51a186b8 100644
--- a/src/schedule/ScheduleCreater.c
+++ b/src/schedule/ScheduleCreater.c
@@ -148,7 +148,7 @@ t_sched_modifier *CCTKi_ScheduleAddModifier(t_sched_modifier *orig,
@vio in
@vcomment
@var fname
- @vdesc name of function to be scheduled
+ @vdesc name of function to be scheduled (may be aliased)
@vtype const char *
@vio in
@vcomment
@@ -237,25 +237,25 @@ int CCTKi_DoScheduleFunction(const char *gname,
@vdesc name of group to schedule group in
@vtype const char *
@vio in
- @vcomment
@var thisname
- @vdesc name of group to be scheduled
+ @vdesc name of group to be scheduled (possibly an alias)
@vtype const char *
@vio in
- @vcomment
+ @endvar
+ @var realname
+ @vdesc actual name of group to be scheduled
+ @vtype const char *
+ @vio in
+ @endvar
@var modifiers
@vdesc moodifier list
@vtype t_sched_modifier *
@vio in
- @vcomment
-
@endvar
@var attributes
@vdesc function attributes
@vtype void *
@vio in
- @vcomment
-
@endvar
@returntype int
@@ -265,7 +265,8 @@ int CCTKi_DoScheduleFunction(const char *gname,
@endreturndesc
@@*/
int CCTKi_DoScheduleGroup(const char *gname,
- const char *thisname,
+ const char *thisname,
+ const char *realname,
t_sched_modifier *modifiers,
void *attributes)
{
@@ -284,11 +285,11 @@ int CCTKi_DoScheduleGroup(const char *gname,
}
/* Find this group */
- thishandle = Util_GetHandle(schedule_groups, thisname, (void **)&this_group);
+ thishandle = Util_GetHandle(schedule_groups, realname, (void **)&this_group);
if(thishandle < 0)
{
- thishandle = ScheduleCreateGroup(thisname);
+ thishandle = ScheduleCreateGroup(realname);
}
if(handle < 0 || thishandle < 0)