#include "petscis.h" PetscErrorCode ISRestorePointRange(IS pointIS, PetscInt *pStart, PetscInt *pEnd, const PetscInt **points)Not collective
pointIS | - The IS object | |
pStart | - The first index, from ISGetPointRange() | |
pEnd | - One past the last index, from ISGetPointRange() | |
points | - The indices, from ISGetPointRange() |
ISGetPointRange(is, &pStart, &pEnd, &points);
for (p = pStart; p < pEnd; ++p) {
const PetscInt point = points ? points[p] : p;
}
ISRestorePointRange(is, &pstart, &pEnd, &points);