Home
last modified time | relevance | path

Searched refs:global_indices (Results 1 – 2 of 2) sorted by relevance

/petsc/src/mat/graphops/partition/impls/hierarchical/
H A Dhierarchical.c244 PetscInt *local_indices, *global_indices, *sfineparts_indices, localsize, i; in MatPartitioningHierarchical_ReassembleFineparts() local
258 PetscCall(PetscMalloc2(localsize, &global_indices, localsize, &local_indices)); in MatPartitioningHierarchical_ReassembleFineparts()
261 PetscCall(ISLocalToGlobalMappingApply(mapping, localsize, local_indices, global_indices)); in MatPartitioningHierarchical_ReassembleFineparts()
264 …for (i = 0; i < localsize; i++) PetscCall(PetscLayoutFindOwner(rmap, global_indices[i], &owners[i]… in MatPartitioningHierarchical_ReassembleFineparts()
275 remote[i].index = global_indices[i] - ranges[owners[i]]; in MatPartitioningHierarchical_ReassembleFineparts()
286 PetscCall(PetscFree2(global_indices, local_indices)); in MatPartitioningHierarchical_ReassembleFineparts()
/petsc/src/ksp/ksp/tutorials/
H A Dex59.c295 PetscInt *global_indices; in ComputeMapping() local
301 PetscCall(PetscMalloc1(localsize, &global_indices)); in ComputeMapping()
310 global_indices[lindex] = gindex; in ComputeMapping()
325 PetscCall(AOApplicationToPetsc(ao, dd.xm_l * dd.ym_l * dd.zm_l, global_indices)); in ComputeMapping()
326 …PetscCall(ISLocalToGlobalMappingCreate(dd.gcomm, 1, localsize, global_indices, PETSC_OWN_POINTER, … in ComputeMapping()