Searched refs:lvecs (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMComposite.pyx | 90 def scatter(self, Vec gvec, lvecs: Sequence[Vec]) -> None: 99 lvecs 112 clvecs[i] = (<Vec?>lvecs[<Py_ssize_t>i]).vec 115 def gather(self, Vec gvec, imode: InsertModeSpec, lvecs: Sequence[Vec]) -> None: 126 lvecs 140 clvecs[i] = (<Vec?>lvecs[<Py_ssize_t>i]).vec
|
| /petsc/src/mat/impls/composite/ |
| H A D | mcomposite.c | 23 Vec *lvecs; /* [nmat] Basically, they are Mvctx->lvec of each component matrix */ member 50 for (i = 0; i < shell->nmat; i++) PetscCall(VecDestroy(&shell->lvecs[i])); in MatDestroy_Composite() 51 PetscCall(PetscFree3(shell->location, shell->larray, shell->lvecs)); in MatDestroy_Composite() 167 PetscCall(PetscMalloc3(tot, &shell->location, tot, &shell->larray, shell->nmat, &shell->lvecs)); in MatMult_Composite() 207 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n, NULL, &shell->lvecs[j])); in MatMult_Composite() 255 PetscCall(VecPlaceArray(shell->lvecs[i], &shell->larray[tot])); in MatMult_Composite() 256 PetscUseTypeMethod(B, multadd, shell->lvecs[i], y2, y2); in MatMult_Composite() 257 PetscCall(VecResetArray(shell->lvecs[i])); in MatMult_Composite()
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 571 PetscErrorCode DMCompositeScatterArray(DM dm, Vec gvec, Vec *lvecs) in DMCompositeScatterArray() argument 587 if (lvecs[i]) { in DMCompositeScatterArray() 590 PetscValidHeaderSpecific(lvecs[i], VEC_CLASSID, 3); in DMCompositeScatterArray() 594 PetscCall(DMGlobalToLocalBegin(next->dm, global, INSERT_VALUES, lvecs[i])); in DMCompositeScatterArray() 595 PetscCall(DMGlobalToLocalEnd(next->dm, global, INSERT_VALUES, lvecs[i])); in DMCompositeScatterArray() 682 PetscErrorCode DMCompositeGatherArray(DM dm, InsertMode imode, Vec gvec, Vec *lvecs) in DMCompositeGatherArray() argument 698 if (lvecs[i]) { in DMCompositeGatherArray() 701 PetscValidHeaderSpecific(lvecs[i], VEC_CLASSID, 4); in DMCompositeGatherArray() 705 PetscCall(DMLocalToGlobalBegin(next->dm, lvecs[i], imode, global)); in DMCompositeGatherArray() 706 PetscCall(DMLocalToGlobalEnd(next->dm, lvecs[i], imode, global)); in DMCompositeGatherArray()
|