fixed bug in build method
authorLawrence Cayton <lcayton@tuebingen.mpg.de>
Fri, 3 Dec 2010 11:21:19 +0000 (12:21 +0100)
committerLawrence Cayton <lcayton@tuebingen.mpg.de>
Fri, 3 Dec 2010 11:21:19 +0000 (12:21 +0100)
rbc.cu

diff --git a/rbc.cu b/rbc.cu
index 0ce19a9..98e676e 100644 (file)
--- a/rbc.cu
+++ b/rbc.cu
@@ -129,7 +129,7 @@ void buildRBC(const matrix x, rbcStruct *rbcS, unint numReps, unint s){
   setupReps(x, rbcS, numReps);
   copyAndMove(&rbcS->dx, &x);
   
-  xmap.r=numReps; xmap.pr=PAD(numReps); xmap.c=s; xmap.pr=xmap.ld=PAD(s);
+  xmap.r=numReps; xmap.pr=PAD(numReps); xmap.c=s; xmap.pc=xmap.ld=PAD(s);
   xmap.mat = (unint*)calloc( xmap.pr*xmap.pc, sizeof(*xmap.mat) );
   copyAndMoveI(&rbcS->dxMap, &xmap);
   rbcS->groupCount = (uint*)calloc( PAD(numReps), sizeof(*rbcS->groupCount) );