Searched refs:tomap (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex15.c | 13 PetscInt i, n, *ix, *iy, *tomap, start; in main() local 80 PetscCall(PetscMalloc1(n, &tomap)); in main() 82 tomap[i] = i + n / 2; in main() 83 tomap[i + n / 2] = i; in main() 85 PetscCall(VecScatterRemap(vscat, tomap, NULL)); in main() 99 PetscCall(PetscFree(tomap)); in main() 138 PetscCall(PetscMalloc1(n, &tomap)); in main() 140 tomap[i] = i + n / 2; in main() 141 tomap[i + n / 2] = i; in main() 143 PetscCall(VecScatterRemap(vscat, tomap, NULL)); in main() [all …]
|
| /petsc/src/vec/vec/utils/ |
| H A D | vscat.c | 112 static PetscErrorCode VecScatterRemap_Internal(VecScatter sf, const PetscInt *tomap, const PetscInt… in VecScatterRemap_Internal() argument 122 if (tomap) { in VecScatterRemap_Internal() 124 if (i != tomap[i]) { in VecScatterRemap_Internal() 132 if (!tomap) PetscFunctionReturn(PETSC_SUCCESS); in VecScatterRemap_Internal() 168 …for (i = 0; i < bas->ioffset[bas->niranks]; i++) bas->irootloc[i] = tomap[bas->irootloc[i] * bs] /… in VecScatterRemap_Internal() 579 PetscErrorCode VecScatterRemap(VecScatter sf, PetscInt tomap[], PetscInt frommap[]) in VecScatterRemap() argument 582 if (tomap) PetscAssertPointer(tomap, 2); in VecScatterRemap() 584 PetscCall(VecScatterRemap_Internal(sf, tomap, frommap)); in VecScatterRemap()
|