summaryrefslogtreecommitdiff
path: root/src/comm/CactusDefaultComm.c
diff options
context:
space:
mode:
authorlanfer <lanfer@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-14 16:37:44 +0000
committerlanfer <lanfer@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-14 16:37:44 +0000
commit3b17715f6ad29d123fe12ba9f1669c1257b53cae (patch)
tree88dd18afddd656ae05375f53819aba2a1832e47a /src/comm/CactusDefaultComm.c
parentd4c446834e757cd66afc7d514f86e42fe05b3618 (diff)
stagger support
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1256 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm/CactusDefaultComm.c')
-rw-r--r--src/comm/CactusDefaultComm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c
index 77207833..c0902b3f 100644
--- a/src/comm/CactusDefaultComm.c
+++ b/src/comm/CactusDefaultComm.c
@@ -98,8 +98,7 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
thisGH->cctk_lbnd = (int *)malloc(thisGH->cctk_dim*sizeof(int));
thisGH->cctk_ubnd = (int *)malloc(thisGH->cctk_dim*sizeof(int));
- for (i=0;i<3;i++)
- thisGH->cctk_lssh[i] = (int *)malloc(thisGH->cctk_dim*sizeof(int));
+ thisGH->cctk_lssh = (int *)malloc(3*thisGH->cctk_dim*sizeof(int));
thisGH->cctk_to = (int *)malloc(thisGH->cctk_dim*sizeof(int));
thisGH->cctk_from = (int *)malloc(thisGH->cctk_dim*sizeof(int));
thisGH->cctk_bbox = (int *)malloc(2*thisGH->cctk_dim*sizeof(int));