Commits

Debojyoti Ghosh committed 98785f9 Merge

Merge branch 'emil/ts-arkimex-mods' into emil/ts-main

Comments (0)

Files changed (1)

src/ts/impls/arkimex/arkimex.c

   if (bt) { ierr = PetscMemcpy(t->bt,bt,s*sizeof(bt[0]));CHKERRQ(ierr); }
   else for (i=0; i<s; i++) t->bt[i] = At[(s-1)*s+i];
   if (b)  { ierr = PetscMemcpy(t->b,b,s*sizeof(b[0]));CHKERRQ(ierr); }
-  else for (i=0; i<s; i++) t->b[i] = bt[i];
+  else for (i=0; i<s; i++) t->b[i] = t->bt[i];
   if (ct) { ierr = PetscMemcpy(t->ct,ct,s*sizeof(ct[0]));CHKERRQ(ierr); }
   else for (i=0; i<s; i++) for (j=0,t->ct[i]=0; j<s; j++) t->ct[i] += At[i*s+j];
   if (c)  { ierr = PetscMemcpy(t->c,c,s*sizeof(c[0]));CHKERRQ(ierr); }