Home
last modified time | relevance | path

Searched refs:Bnew (Results 1 – 4 of 4) sorted by relevance

/petsc/src/mat/impls/baij/mpi/
H A Dmmbaij.c131 Mat B = baij->B, Bnew; in MatDisAssemble_MPIBAIJ() local
160 PetscCall(MatCreate(PetscObjectComm((PetscObject)B), &Bnew)); in MatDisAssemble_MPIBAIJ()
161 PetscCall(MatSetSizes(Bnew, m, n, m, n)); in MatDisAssemble_MPIBAIJ()
162 PetscCall(MatSetType(Bnew, ((PetscObject)B)->type_name)); in MatDisAssemble_MPIBAIJ()
163 PetscCall(MatSeqBAIJSetPreallocation(Bnew, B->rmap->bs, 0, nz)); in MatDisAssemble_MPIBAIJ()
168 Bnew->nonzerostate = B->nonzerostate; in MatDisAssemble_MPIBAIJ()
170 ((Mat_SeqBAIJ *)Bnew->data)->nonew = Bbaij->nonew; in MatDisAssemble_MPIBAIJ()
173 PetscCall(MatSetOption(Bnew, MAT_ROW_ORIENTED, PETSC_FALSE)); in MatDisAssemble_MPIBAIJ()
178 PetscCall(MatSetValuesBlocked_SeqBAIJ(Bnew, 1, &i, 1, &col, atmp, B->insertmode)); in MatDisAssemble_MPIBAIJ()
181 PetscCall(MatSetOption(Bnew, MAT_ROW_ORIENTED, Bbaij->roworiented)); in MatDisAssemble_MPIBAIJ()
[all …]
/petsc/src/mat/impls/sell/mpi/
H A Dmmsell.c19 Mat B = sell->B, Bnew; in MatDisAssemble_MPISELL() local
41 PetscCall(MatCreate(PETSC_COMM_SELF, &Bnew)); in MatDisAssemble_MPISELL()
42 PetscCall(MatSetSizes(Bnew, B->rmap->n, N, B->rmap->n, N)); in MatDisAssemble_MPISELL()
43 PetscCall(MatSetBlockSizesFromMats(Bnew, A, A)); in MatDisAssemble_MPISELL()
44 PetscCall(MatSetType(Bnew, ((PetscObject)B)->type_name)); in MatDisAssemble_MPISELL()
45 PetscCall(MatSeqSELLSetPreallocation(Bnew, 0, Bsell->rlen)); in MatDisAssemble_MPISELL()
47 ((Mat_SeqSELL *)Bnew->data)->nonew = Bsell->nonew; in MatDisAssemble_MPISELL()
54 Bnew->nonzerostate = B->nonzerostate; in MatDisAssemble_MPISELL()
60 …if (isnonzero) PetscCall(MatSetValue(Bnew, Bsell->sliceheight * i + row, sell->garray[Bsell->colid… in MatDisAssemble_MPISELL()
67 sell->B = Bnew; in MatDisAssemble_MPISELL()
/petsc/src/mat/impls/aij/mpi/
H A Dmmaij.c136 Mat B = aij->B, Bnew = NULL; in MatDisAssemble_MPIAIJ() local
165 PetscCall(MatCreate(PETSC_COMM_SELF, &Bnew)); in MatDisAssemble_MPIAIJ()
166 PetscCall(MatSetSizes(Bnew, m, n, m, n)); /* Bnew now uses A->cmap->N as its col size */ in MatDisAssemble_MPIAIJ()
167 PetscCall(MatSetBlockSizesFromMats(Bnew, A, A)); in MatDisAssemble_MPIAIJ()
168 PetscCall(MatSetType(Bnew, ((PetscObject)B)->type_name)); in MatDisAssemble_MPIAIJ()
169 PetscCall(MatSeqAIJSetPreallocation(Bnew, 0, nz)); in MatDisAssemble_MPIAIJ()
172 ((Mat_SeqAIJ *)Bnew->data)->nonew = Baij->nonew; in MatDisAssemble_MPIAIJ()
179 Bnew->nonzerostate = B->nonzerostate; in MatDisAssemble_MPIAIJ()
187 PetscCall(MatSetValues(Bnew, 1, &i, 1, &col, &v, B->insertmode)); in MatDisAssemble_MPIAIJ()
195 aij->B = Bnew; in MatDisAssemble_MPIAIJ()
/petsc/src/mat/impls/sbaij/mpi/
H A Dmmsbaij.c184 Mat B = baij->B, Bnew; in MatDisAssemble_MPISBAIJ() local
223 PetscCall(MatCreate(PETSC_COMM_SELF, &Bnew)); in MatDisAssemble_MPISBAIJ()
224 PetscCall(MatSetSizes(Bnew, m, n, m, n)); in MatDisAssemble_MPISBAIJ()
225 PetscCall(MatSetType(Bnew, ((PetscObject)B)->type_name)); in MatDisAssemble_MPISBAIJ()
226 PetscCall(MatSeqBAIJSetPreallocation(Bnew, B->rmap->bs, 0, nz)); in MatDisAssemble_MPISBAIJ()
230 ((Mat_SeqSBAIJ *)Bnew->data)->nonew = Bbaij->nonew; in MatDisAssemble_MPISBAIJ()
237 Bnew->nonzerostate = B->nonzerostate; in MatDisAssemble_MPISBAIJ()
250 PetscCall(MatSetValues_SeqSBAIJ(Bnew, bs, rvals, 1, &col, atmp, B->insertmode)); in MatDisAssemble_MPISBAIJ()
265 baij->B = Bnew; in MatDisAssemble_MPISBAIJ()