| /petsc/src/binding/petsc4py/demo/legacy/ode/ |
| H A D | heat.py | 46 self.g2l = PETSc.Scatter().create(self.gvec, isg, self.lvec, None) 58 self.g2l.scatter(self.gvec, self.lvec, PETSc.InsertMode.INSERT) 72 self.g2l.scatter(x, self.lvec, PETSc.InsertMode.INSERT) # lvec is a work vector
|
| /petsc/src/mat/impls/aij/mpi/kokkos/ |
| H A D | mpiaijkok.kokkos.cxx | 267 PetscHMapI g2l = nullptr; in ReduceTwoSetsOfGlobalIndices() local 274 PetscCall(PetscHMapICreateWithSize(n1, &g2l)); in ReduceTwoSetsOfGlobalIndices() 276 …PetscCall(PetscHMapIGetWithDefault(g2l, indices[i], -1, &val)); // if not exist, val is set with -1 in ReduceTwoSetsOfGlobalIndices() 277 …if (val < 0) PetscCall(PetscHMapISet(g2l, indices[i], tot++)); // val < 0 means gid is not in the… in ReduceTwoSetsOfGlobalIndices() 281 PetscCall(PetscHMapIGetWithDefault(g2l, garray1[i], -1, &val)); in ReduceTwoSetsOfGlobalIndices() 282 if (val < 0) PetscCall(PetscHMapISet(g2l, garray1[i], tot++)); in ReduceTwoSetsOfGlobalIndices() 289 PetscHashIterBegin(g2l, iter); in ReduceTwoSetsOfGlobalIndices() 290 while (!PetscHashIterAtEnd(g2l, iter)) { in ReduceTwoSetsOfGlobalIndices() 291 PetscHashIterGetKey(g2l, iter, key); in ReduceTwoSetsOfGlobalIndices() 292 PetscHashIterNext(g2l, iter); in ReduceTwoSetsOfGlobalIndices() [all …]
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 628 ISLocalToGlobalMapping l2g, g2l; in PetscPartitionerPartition_Multistage() local 659 PetscCall(ISLocalToGlobalMappingCreateIS(gid, &g2l)); in PetscPartitionerPartition_Multistage() 660 PetscCall(ISLocalToGlobalMappingSetType(g2l, ISLOCALTOGLOBALMAPPINGHASH)); in PetscPartitionerPartition_Multistage() 668 …PetscCall(ISGlobalToLocalMappingApply(g2l, IS_GTOLM_DROP, start[i + 1] - start[i], adjacency + sta… in PetscPartitionerPartition_Multistage() 673 PetscCall(ISLocalToGlobalMappingDestroy(&g2l)); in PetscPartitionerPartition_Multistage()
|
| /petsc/src/sys/classes/viewer/impls/glvis/ |
| H A D | glvis.c | 128 …wer, PetscInt nf, const char *fec_type[], PetscInt dim[], PetscErrorCode (*g2l)(PetscObject, Petsc… in PetscViewerGLVisSetFields() 137 …, PetscObject[], void *, PetscCtxDestroyFn *), (viewer, nf, fec_type, dim, g2l, Vfield, ctx, destr… in PetscViewerGLVisSetFields() 141 …PetscInt nfields, const char *fec_type[], PetscInt dim[], PetscErrorCode (*g2l)(PetscObject, Petsc… in PetscViewerGLVisSetFields_GLVis() 165 socket->g2lfield = g2l; in PetscViewerGLVisSetFields_GLVis()
|
| /petsc/include/petsc/private/ |
| H A D | pcbddcstructsimpl.h | 268 VecScatter g2l; member
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMDA.pyx | 941 cdef Scatter g2l = Scatter() 942 CHKERR(DMDAGetScatter(self.dm, &l2g.sct, &g2l.sct)) 944 CHKERR(PetscINCREF(g2l.obj)) 945 return (l2g, g2l)
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 1317 PetscErrorCode (*g2l)(PetscObject, PetscInt, PetscObject[], void *); in DMCompositeSampleGLVisFields_Private() local 1321 … PetscCall(PetscViewerGLVisGetFields_Internal(ctx->subv[i], &nfi, NULL, NULL, &g2l, NULL, &fctx)); in DMCompositeSampleGLVisFields_Private() 1323 if (g2l) PetscCall((*g2l)((PetscObject)ctx->vecs[i], nfi, oXfield + cumf, fctx)); in DMCompositeSampleGLVisFields_Private()
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddc.c | 2337 PetscCall(VecScatterDestroy(&bddcipc_ctx->g2l)); in PCSetUp_BDDCIPC() 2340 PetscCall(VecScatterCreate(vv, is, pcis->vec1_B, NULL, &bddcipc_ctx->g2l)); in PCSetUp_BDDCIPC() 2356 pcis->global_to_B = bddcipc_ctx->g2l; in PCApply_BDDCIPC() 2374 pcis->global_to_B = bddcipc_ctx->g2l; in PCApplyTranspose_BDDCIPC() 2389 PetscCall(VecScatterDestroy(&bddcipc_ctx->g2l)); in PCDestroy_BDDCIPC()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 1530 ISLocalToGlobalMapping g2l; in DMPlexView_Ascii() local 1592 PetscCall(ISLocalToGlobalMappingCreateIS(gid, &g2l)); in DMPlexView_Ascii() 1593 PetscCall(ISLocalToGlobalMappingSetType(g2l, ISLOCALTOGLOBALMAPPINGHASH)); in DMPlexView_Ascii() 1600 …PetscCall(ISGlobalToLocalMappingApply(g2l, IS_GTOLM_MASK, totl, adjacency + start[c], NULL, work)); in DMPlexView_Ascii() 1624 PetscCall(ISLocalToGlobalMappingDestroy(&g2l)); in DMPlexView_Ascii()
|