Lines Matching refs:next

54       if (vlink->next) {  in PetscViewerDestroy_ASCII()
55 …CallMPI(MPI_Comm_set_attr(PetscObjectComm((PetscObject)viewer), Petsc_Viewer_keyval, vlink->next)); in PetscViewerDestroy_ASCII()
61 while (vlink && vlink->next) { in PetscViewerDestroy_ASCII()
62 if (vlink->next->viewer == viewer) { in PetscViewerDestroy_ASCII()
63 PetscViewerLink *nv = vlink->next; in PetscViewerDestroy_ASCII()
64 vlink->next = vlink->next->next; in PetscViewerDestroy_ASCII()
67 vlink = vlink->next; in PetscViewerDestroy_ASCII()
964 PrintfQueue next = vascii->petsc_printfqueuebase, previous; in PetscViewerFlush_ASCII() local
967 if (!vascii->fileunit) PetscCall(PetscFPrintf(comm, fd, "%s", next->string)); in PetscViewerFlush_ASCII()
968 else PetscCall(PetscFPrintfFortran(vascii->fileunit, next->string)); in PetscViewerFlush_ASCII()
970 PetscCall(PetscViewerASCIISynchronizedPrintf(vascii->bviewer, "%s", next->string)); in PetscViewerFlush_ASCII()
972 previous = next; in PetscViewerFlush_ASCII()
973 next = next->next; in PetscViewerFlush_ASCII()
999 PrintfQueue next = vascii->petsc_printfqueuebase, previous; in PetscViewerFlush_ASCII() local
1004 PetscCallMPI(MPI_Send(&next->size, 1, MPIU_SIZE_T, 0, tag, comm)); in PetscViewerFlush_ASCII()
1005 PetscCallMPI(MPI_Send(next->string, (PetscMPIInt)next->size, MPI_CHAR, 0, tag, comm)); in PetscViewerFlush_ASCII()
1006 previous = next; in PetscViewerFlush_ASCII()
1007 next = next->next; in PetscViewerFlush_ASCII()
1159 PrintfQueue next; in PetscViewerASCIISynchronizedPrintf() local
1161 PetscCall(PetscNew(&next)); in PetscViewerASCIISynchronizedPrintf()
1163 vascii->petsc_printfqueue->next = next; in PetscViewerASCIISynchronizedPrintf()
1164 vascii->petsc_printfqueue = next; in PetscViewerASCIISynchronizedPrintf()
1166 vascii->petsc_printfqueuebase = vascii->petsc_printfqueue = next; in PetscViewerASCIISynchronizedPrintf()
1169 next->size = QUEUESTRINGSIZE; in PetscViewerASCIISynchronizedPrintf()
1170 PetscCall(PetscCalloc1(next->size, &next->string)); in PetscViewerASCIISynchronizedPrintf()
1171 string = next->string; in PetscViewerASCIISynchronizedPrintf()
1177 PetscCall(PetscVSNPrintf(string, next->size - 2 * vascii->tab, format, &fullLength, Argp)); in PetscViewerASCIISynchronizedPrintf()
1179 if (fullLength > next->size - 2 * vascii->tab) { in PetscViewerASCIISynchronizedPrintf()
1180 PetscCall(PetscFree(next->string)); in PetscViewerASCIISynchronizedPrintf()
1181 next->size = fullLength + 2 * vascii->tab; in PetscViewerASCIISynchronizedPrintf()
1182 PetscCall(PetscCalloc1(next->size, &next->string)); in PetscViewerASCIISynchronizedPrintf()
1183 string = next->string; in PetscViewerASCIISynchronizedPrintf()
1187 PetscCall(PetscVSNPrintf(string, next->size - 2 * vascii->tab, format, NULL, Argp)); in PetscViewerASCIISynchronizedPrintf()