summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlanfer <lanfer@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-13 10:39:41 +0000
committerlanfer <lanfer@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-01-13 10:39:41 +0000
commitf5605d9fb9a5506eab8b1c2fc455da1c7da3e322 (patch)
tree5bf3e112fbcd68686a67886c359c92847d66d2fc /src
parent3d1338b9e8623c4706303fd40bac191dc7f5079f (diff)
bug fix for lssh
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1249 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/comm/CactusDefaultComm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/comm/CactusDefaultComm.c b/src/comm/CactusDefaultComm.c
index 47eba601..77207833 100644
--- a/src/comm/CactusDefaultComm.c
+++ b/src/comm/CactusDefaultComm.c
@@ -67,6 +67,7 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
int variable;
int ntimelevels;
int level;
+ int i;
retval = NULL;
@@ -96,6 +97,9 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
thisGH->cctk_lsh = (int *)malloc(thisGH->cctk_dim*sizeof(int));
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_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));
@@ -151,6 +155,7 @@ cGH *CactusDefaultSetupGH(tFleshConfig *config, int convergence_level)
thisGH->cctk_lsh &&
thisGH->cctk_lbnd &&
thisGH->cctk_ubnd &&
+ thisGH->cctk_lssh &&
thisGH->cctk_from &&
thisGH->cctk_to &&
thisGH->cctk_bbox &&