Lines Matching refs:tot
135 PetscInt i, j, k, n, nuniq, lo, hi, mid, *gindices, *buf, *tmp, tot; in MatMult_Composite() local
161 tot = 0; in MatMult_Composite()
165 tot += n; in MatMult_Composite()
167 PetscCall(PetscMalloc3(tot, &shell->location, tot, &shell->larray, shell->nmat, &shell->lvecs)); in MatMult_Composite()
168 shell->len = tot; in MatMult_Composite()
171 …PetscCall(PetscMalloc1(tot, &gindices)); /* No Malloc2() since we will give one to PETSc and free … in MatMult_Composite()
172 PetscCall(PetscMalloc1(tot, &buf)); in MatMult_Composite()
203 tot = 0; in MatMult_Composite()
217 shell->location[tot + i] = lo; /* gindices[lo] = garray[i] */ in MatMult_Composite()
220 tot += n; in MatMult_Composite()
251 for (cur = shell->head, tot = i = 0; cur; cur = cur->next, i++) { /* i-th matrix */ in MatMult_Composite()
255 PetscCall(VecPlaceArray(shell->lvecs[i], &shell->larray[tot])); in MatMult_Composite()
259 tot += n; in MatMult_Composite()