summaryrefslogtreecommitdiff
path: root/src/main/ScheduleInterface.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-16 16:04:27 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-16 16:04:27 +0000
commitdfc3990d653548da6a073c981bfe147556857cb9 (patch)
treedb2907265b4addbe17e4580cf19419396bb34423 /src/main/ScheduleInterface.c
parentd6346c3964b67094df8f89bbb7fd00c69d9ee788 (diff)
Change the top-level storage for GVs to use new GroupStorageIncrease.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@2723 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ScheduleInterface.c')
-rw-r--r--src/main/ScheduleInterface.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c
index 0a4c8ce2..5c8cb111 100644
--- a/src/main/ScheduleInterface.c
+++ b/src/main/ScheduleInterface.c
@@ -188,6 +188,7 @@ static int *scheduled_comm_groups = NULL;
static int n_scheduled_storage_groups = 0;
static int *scheduled_storage_groups = NULL;
+static int *scheduled_storage_groups_timelevels = NULL;
static cTimerData *timerinfo = NULL;
static int total_timer = -1;
@@ -574,6 +575,7 @@ int CCTKi_ScheduleGroup(const char *name,
@vtype const char *
@vio in
@endvar
+
@returntype int
@returndesc
Group index or
@@ -583,16 +585,24 @@ int CCTKi_ScheduleGroup(const char *name,
int CCTKi_ScheduleGroupStorage(const char *group)
{
int *temp;
+ int *temp2;
temp = (int *) realloc(scheduled_storage_groups,
(n_scheduled_storage_groups+1) * sizeof(int));
- if(temp)
+ temp2 = (int *) realloc(scheduled_storage_groups_timelevels,
+ (n_scheduled_storage_groups+1) * sizeof(int));
+
+ if(temp && temp2)
{
temp[n_scheduled_storage_groups++] = CCTK_GroupIndex(group);
scheduled_storage_groups = temp;
+ scheduled_storage_groups_timelevels = temp2;
+
+ /* FIXME: set to -1 (enable all) until the info is passed in from the ccl*/
+ scheduled_storage_groups_timelevels[n_scheduled_storage_groups-1] = -1;
}
- return (temp ? temp[n_scheduled_storage_groups-1] : -1);
+ return (temp && temp2 ? temp[n_scheduled_storage_groups-1] : -1);
}
@@ -767,10 +777,11 @@ int CCTKi_ScheduleGHInit(void *GH)
"No timing information will be available.");
}
- for(i = 0; i < n_scheduled_storage_groups; i++)
- {
- CCTK_EnableGroupStorageI(GH,scheduled_storage_groups[i]);
- }
+ CCTK_GroupStorageIncrease(GH,
+ n_scheduled_storage_groups,
+ scheduled_storage_groups,
+ scheduled_storage_groups_timelevels,
+ NULL);
for(i = 0; i < n_scheduled_comm_groups; i++)
{