| /petsc/src/mat/tests/ |
| H A D | ex159.c | 44 ISLocalToGlobalMapping l2g; in main() local 51 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, 1, 3, l2gind, PETSC_COPY_VALUES, &l2g)); in main() 54 … PetscCall(MatCreateIS(PETSC_COMM_WORLD, 1, 1, 1, PETSC_DECIDE, PETSC_DECIDE, l2g, l2g, &B[i])); in main() 58 PetscCall(MatSetLocalToGlobalMapping(B[i], l2g, l2g)); in main() 102 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in main() 104 ISLocalToGlobalMapping l2g; in main() local 108 … PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_WORLD, 1, 9, l2gind, PETSC_COPY_VALUES, &l2g)); in main() 110 PetscCall(MatCreateIS(PETSC_COMM_WORLD, 1, 3, 3, PETSC_DECIDE, PETSC_DECIDE, l2g, l2g, &A)); in main() 113 PetscCall(MatSetLocalToGlobalMapping(A, l2g, l2g)); in main() 115 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in main()
|
| H A D | ex46.c | 34 ISLocalToGlobalMapping l2g; in main() local 37 PetscCall(VecGetLocalToGlobalMapping(x[i], &l2g)); in main() 38 PetscCall(ISLocalToGlobalMappingGetBlockSize(l2g, &l2gbs[i])); in main()
|
| /petsc/src/mat/tests/output/ |
| H A D | ex46_1.out | 1 Mat Block sizes: 6 3 (l2g 6 3) 2 Vec Block sizes: 1 1 (l2g 2 2) 3 Vec Block sizes: 6 3 (l2g 6 3)
|
| /petsc/src/vec/is/tests/output/ |
| H A D | ex8_1_1.out | 6 %IS Object: l2g 1 MPI process 8 l2g = [...
|
| H A D | ex8_1_2.out | 10 %IS Object: l2g 2 MPI processes
|
| H A D | ex8_1_3.out | 15 %IS Object: l2g 3 MPI processes
|
| /petsc/src/ksp/pc/impls/mg/ |
| H A D | gdsw.c | 12 ISLocalToGlobalMapping l2g; in PCMGGDSWSetUp() local 103 PetscCall(MatISGetLocalToGlobalMapping(A, &l2g, NULL)); in PCMGGDSWSetUp() 105 PetscCall(PCBDDCGraphInit(graph, l2g, N, PETSC_INT_MAX)); in PCMGGDSWSetUp() 111 l2g = graph->l2gmap; in PCMGGDSWSetUp() 125 PetscCall(ISLocalToGlobalMappingApplyIS(l2g, cand->Faces[i], &is)); in PCMGGDSWSetUp() 128 PetscCall(ISGlobalToLocalMappingApplyIS(l2g, IS_GTOLM_DROP, is, &is2)); in PCMGGDSWSetUp() 138 PetscCall(PetscObjectCompose((PetscObject)l2g, "_PCBDDCGraphCandidatesIS", (PetscObject)gcand)); in PCMGGDSWSetUp() 180 PetscCall(ISLocalToGlobalMappingApplyIS(l2g, cref, &sGi[0])); in PCMGGDSWSetUp()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexdd.c | 315 ISLocalToGlobalMapping l2g; in DMCreateNeumannOverlap_Plex() local 363 PetscCall(MatISGetLocalToGlobalMapping(pJ, &l2g, NULL)); in DMCreateNeumannOverlap_Plex() 364 PetscCall(ISLocalToGlobalMappingGetSize(l2g, &n)); in DMCreateNeumannOverlap_Plex() 365 PetscCall(ISLocalToGlobalMappingGetIndices(l2g, &idxs)); in DMCreateNeumannOverlap_Plex() 367 PetscCall(ISLocalToGlobalMappingRestoreIndices(l2g, &idxs)); in DMCreateNeumannOverlap_Plex()
|
| H A D | plexfem.c | 564 …TransformGetMatrix_Rotation_Internal(DM dm, const PetscReal x[], PetscBool l2g, const PetscScalar … in DMPlexBasisTransformGetMatrix_Rotation_Internal() argument 570 if (l2g) { in DMPlexBasisTransformGetMatrix_Rotation_Internal() 578 PetscErrorCode DMPlexBasisTransformApplyReal_Internal(DM dm, const PetscReal x[], PetscBool l2g, Pe… in DMPlexBasisTransformApplyReal_Internal() argument 586 PetscCall(DMPlexBasisTransformApply_Internal(dm, x, l2g, dim, yt, zt, ctx)); in DMPlexBasisTransformApplyReal_Internal() 593 PetscCall(DMPlexBasisTransformApply_Internal(dm, x, l2g, dim, yt, zt, ctx)); in DMPlexBasisTransformApplyReal_Internal() 600 PetscCall(DMPlexBasisTransformApply_Internal(dm, x, l2g, dim, y, z, ctx)); in DMPlexBasisTransformApplyReal_Internal() 605 PetscErrorCode DMPlexBasisTransformApply_Internal(DM dm, const PetscReal x[], PetscBool l2g, PetscI… in DMPlexBasisTransformApply_Internal() argument 610 PetscCall((*dm->transformGetMatrix)(dm, x, l2g, &A, ctx)); in DMPlexBasisTransformApply_Internal() 622 …ansformField_Internal(DM dm, DM tdm, Vec tv, PetscInt p, PetscInt f, PetscBool l2g, PetscScalar *a) in DMPlexBasisTransformField_Internal() argument 633 if (l2g) { in DMPlexBasisTransformField_Internal() [all …]
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 628 ISLocalToGlobalMapping l2g, g2l; in PetscPartitionerPartition_Multistage() local 661 PetscCall(ISLocalToGlobalMappingCreateIS(rid, &l2g)); in PetscPartitionerPartition_Multistage() 669 …PetscCall(ISLocalToGlobalMappingApply(l2g, pstart[i + 1], padjacency + pstart[i], padjacency + pst… in PetscPartitionerPartition_Multistage() 672 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in PetscPartitionerPartition_Multistage()
|
| /petsc/src/ksp/ksp/impls/fetidp/ |
| H A D | fetidp.c | 588 ISLocalToGlobalMapping l2g; in KSPFETIDPSetUpOperators() local 599 PetscCall(MatISGetLocalToGlobalMapping(A, &l2g, NULL)); in KSPFETIDPSetUpOperators() 603 PetscCall(ISLocalToGlobalMappingGetInfo(l2g, &n_neigh, &neigh, &n_shared, &shared)); in KSPFETIDPSetUpOperators() 608 PetscCall(ISLocalToGlobalMappingRestoreInfo(l2g, &n_neigh, &neigh, &n_shared, &shared)); in KSPFETIDPSetUpOperators() 757 PetscCall(ISLocalToGlobalMappingApply(l2g, ni, widxs, widxs2)); in KSPFETIDPSetUpOperators() 771 PetscCall(ISLocalToGlobalMappingApply(l2g, ni, idxs, widxs)); in KSPFETIDPSetUpOperators()
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcfetidp.c | 580 ISLocalToGlobalMapping l2g; in PCBDDCSetupFETIDPMatContext() local 591 …cCall(ISLocalToGlobalMappingCreate(comm, 1, n_local_lambda, l2g_indices, PETSC_COPY_VALUES, &l2g)); in PCBDDCSetupFETIDPMatContext() 592 PetscCall(MatSetLocalToGlobalMapping(T, l2g, l2g)); in PCBDDCSetupFETIDPMatContext() 593 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in PCBDDCSetupFETIDPMatContext()
|
| H A D | bddcprivate.c | 2946 ISLocalToGlobalMapping l2g; in PCBDDCBenignDetectSaddlePoint() local 2951 PetscCall(ISLocalToGlobalMappingCreateIS(subs[i], &l2g)); in PCBDDCBenignDetectSaddlePoint() 2957 PetscCall(ISLocalToGlobalMappingCreateIS(tis, &l2g)); in PCBDDCBenignDetectSaddlePoint() 2960 PetscCall(ISGlobalToLocalMappingApplyIS(l2g, IS_GTOLM_DROP, is[b], &t_zerodiag_subs)); in PCBDDCBenignDetectSaddlePoint() 2990 PetscCall(ISGlobalToLocalMappingApply(l2g, IS_GTOLM_DROP, nneu, idxs, &nzb, NULL)); in PCBDDCBenignDetectSaddlePoint() 2998 … PetscCall(ISGlobalToLocalMappingApplyIS(l2g, IS_GTOLM_DROP, pressures, &t_pressure_subs)); in PCBDDCBenignDetectSaddlePoint() 3007 … PetscCall(ISLocalToGlobalMappingApplyIS(l2g, t_zerodiag_subs, &zerodiag_subs[benign_n])); in PCBDDCBenignDetectSaddlePoint() 3012 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in PCBDDCBenignDetectSaddlePoint()
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 416 …ic PetscErrorCode MatMPIXAIJComputeLocalToGlobalMapping_Private(Mat A, ISLocalToGlobalMapping *l2g) in MatMPIXAIJComputeLocalToGlobalMapping_Private() argument 435 PetscCall(MatGetLocalToGlobalMapping(A, l2g, NULL)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 453 PetscCall(ISLocalToGlobalMappingCreateIS(ndsub, l2g)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 456 PetscCall(ISLocalToGlobalMappingGetNodeInfo(*l2g, &nl, &ncount, NULL)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 458 PetscCall(ISLocalToGlobalMappingGetIndices(*l2g, &garray)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 460 PetscCall(ISLocalToGlobalMappingRestoreIndices(*l2g, &garray)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 464 PetscCall(ISLocalToGlobalMappingRestoreNodeInfo(*l2g, NULL, &ncount, NULL)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 572 PetscCall(ISLocalToGlobalMappingDestroy(l2g)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 575 PetscCall(ISLocalToGlobalMappingCreateIS(is, l2g)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() 589 PetscCall(ISLocalToGlobalMappingSetBlockSize(*l2g, bs)); in MatMPIXAIJComputeLocalToGlobalMapping_Private() [all …]
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMDA.pyx | 940 cdef Scatter l2g = Scatter() 942 CHKERR(DMDAGetScatter(self.dm, &l2g.sct, &g2l.sct)) 943 CHKERR(PetscINCREF(l2g.obj)) 945 return (l2g, g2l)
|
| /petsc/src/dm/impls/plex/hdf5/ |
| H A D | plexhdf5.c | 2555 ISLocalToGlobalMapping l2g; in DMPlexTopologyBuildFromLayers_Private() local 2568 PetscCall(ISLocalToGlobalMappingCreateSF(vertexSF, vertexLayout->rstart, &l2g)); in DMPlexTopologyBuildFromLayers_Private() 2569 …PetscCall(ISGlobalToLocalMappingApply(l2g, IS_GTOLM_MASK, lConesSize, gCones, &lConesSize0, lCones… in DMPlexTopologyBuildFromLayers_Private() 2571 PetscCall(ISLocalToGlobalMappingDestroy(&l2g)); in DMPlexTopologyBuildFromLayers_Private()
|
| /petsc/src/mat/interface/ |
| H A D | matrix.c | 8078 ISLocalToGlobalMapping l2g = NULL; in MatSetBlockSizes() local 8082 if (mat->rmap->mapping) PetscCall(ISLocalToGlobalMappingDuplicate(mat->rmap->mapping, &l2g)); in MatSetBlockSizes() 8085 mat->rmap->mapping = l2g; in MatSetBlockSizes() 8088 ISLocalToGlobalMapping l2g = NULL; in MatSetBlockSizes() local 8092 if (mat->cmap->mapping) PetscCall(ISLocalToGlobalMappingDuplicate(mat->cmap->mapping, &l2g)); in MatSetBlockSizes() 8095 mat->cmap->mapping = l2g; in MatSetBlockSizes()
|
| /petsc/src/ksp/pc/impls/hpddm/ |
| H A D | pchpddm.cxx | 1774 ISLocalToGlobalMapping l2g; in PCSetUp_HPDDM() local 2272 PetscCall(MatISGetLocalToGlobalMapping(P, &l2g, nullptr)); in PCSetUp_HPDDM() 2276 PetscCall(ISLocalToGlobalMappingGetSize(l2g, &n)); in PCSetUp_HPDDM() 2278 PetscCall(ISLocalToGlobalMappingApplyIS(l2g, loc, &is[0])); in PCSetUp_HPDDM()
|