Lines Matching refs:next

11   PC_FieldSplitLink next, previous;  member
31 PC_FieldSplitLink *next = &red->splitlinks; in PCFieldSplitSetIS_Redistribute() local
34 while (*next) next = &(*next)->next; in PCFieldSplitSetIS_Redistribute()
35 PetscCall(PetscNew(next)); in PCFieldSplitSetIS_Redistribute()
37 PetscCall(PetscStrallocpy(splitname, &(*next)->splitname)); in PCFieldSplitSetIS_Redistribute()
39 PetscCall(PetscMalloc1(8, &(*next)->splitname)); in PCFieldSplitSetIS_Redistribute()
40 PetscCall(PetscSNPrintf((*next)->splitname, 7, "%" PetscInt_FMT, red->nsplits++)); in PCFieldSplitSetIS_Redistribute()
43 PetscCall(ISDestroy(&(*next)->is)); in PCFieldSplitSetIS_Redistribute()
44 (*next)->is = is; in PCFieldSplitSetIS_Redistribute()
90 PC_FieldSplitLink *next = &red->splitlinks; in PCSetUp_Redistribute() local
257 if (fptr && *next) { in PCSetUp_Redistribute()
267 while (*next) { in PCSetUp_Redistribute()
271 PetscCall(ISGetIndices((*next)->is, &indices)); in PCSetUp_Redistribute()
272 PetscCall(ISGetLocalSize((*next)->is, &n)); in PCSetUp_Redistribute()
274 PetscCall(ISRestoreIndices((*next)->is, &indices)); in PCSetUp_Redistribute()
276 next = &(*next)->next; in PCSetUp_Redistribute()
283 next = &red->splitlinks; in PCSetUp_Redistribute()
284 while (*next) { in PCSetUp_Redistribute()
298 PetscCall(PCFieldSplitSetIS(ipc, (*next)->splitname, ris)); in PCSetUp_Redistribute()
302 next = &(*next)->next; in PCSetUp_Redistribute()
433 PC_FieldSplitLink next = red->splitlinks; in PCDestroy_Redistribute() local
438 while (next) { in PCDestroy_Redistribute()
440 PetscCall(PetscFree(next->splitname)); in PCDestroy_Redistribute()
441 PetscCall(ISDestroy(&next->is)); in PCDestroy_Redistribute()
442 ilink = next; in PCDestroy_Redistribute()
443 next = next->next; in PCDestroy_Redistribute()