summaryrefslogtreecommitdiff
path: root/src/main/ScheduleInterface.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-28 18:36:31 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-04-28 18:36:31 +0000
commit4166988fbf583ac25e30e3080f35fb80899c6afc (patch)
tree6135281cddd78278fda5bddc1288414d5b609605 /src/main/ScheduleInterface.c
parentc0eaff0ec58c7538834a4e722e86bf57670591f0 (diff)
Only try and increase storage if there are some grid variable groups
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2768 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/ScheduleInterface.c')
-rw-r--r--src/main/ScheduleInterface.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/ScheduleInterface.c b/src/main/ScheduleInterface.c
index 431e2eaa..4203ec63 100644
--- a/src/main/ScheduleInterface.c
+++ b/src/main/ScheduleInterface.c
@@ -790,11 +790,14 @@ int CCTKi_ScheduleGHInit(void *GH)
"No timing information will be available.");
}
- CCTK_GroupStorageIncrease(GH,
- n_scheduled_storage_groups,
- scheduled_storage_groups,
- scheduled_storage_groups_timelevels,
- NULL);
+ if (n_scheduled_storage_groups>0)
+ {
+ CCTK_GroupStorageIncrease(GH,
+ n_scheduled_storage_groups,
+ scheduled_storage_groups,
+ scheduled_storage_groups_timelevels,
+ NULL);
+ }
for(i = 0; i < n_scheduled_comm_groups; i++)
{