Lines Matching refs:string
715 char *string; in PetscViewerASCIIPrintf() local
719 PetscCall(PetscCalloc1(QUEUESTRINGSIZE, &string)); in PetscViewerASCIIPrintf()
720 for (; tab < ascii->tab; tab++) string[2 * tab] = string[2 * tab + 1] = ' '; in PetscViewerASCIIPrintf()
722 …PetscCall(PetscVSNPrintf(string + 2 * intab, QUEUESTRINGSIZE - 2 * intab, format, &fullLength, Arg… in PetscViewerASCIIPrintf()
724 PetscCall(PetscViewerASCIISynchronizedPrintf(ascii->bviewer, "%s", string)); in PetscViewerASCIIPrintf()
725 PetscCall(PetscFree(string)); in PetscViewerASCIIPrintf()
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()
974 PetscCall(PetscFree(previous->string)); in PetscViewerFlush_ASCII()
1005 PetscCallMPI(MPI_Send(next->string, (PetscMPIInt)next->size, MPI_CHAR, 0, tag, comm)); in PetscViewerFlush_ASCII()
1008 PetscCall(PetscFree(previous->string)); in PetscViewerFlush_ASCII()
1123 char *string; in PetscViewerASCIISynchronizedPrintf() local
1127 PetscCall(PetscCalloc1(QUEUESTRINGSIZE, &string)); in PetscViewerASCIISynchronizedPrintf()
1128 for (; tab < vascii->tab; tab++) string[2 * tab] = string[2 * tab + 1] = ' '; in PetscViewerASCIISynchronizedPrintf()
1130 … PetscCall(PetscVSNPrintf(string + 2 * tab, QUEUESTRINGSIZE - 2 * tab, format, &fullLength, Argp)); in PetscViewerASCIISynchronizedPrintf()
1132 PetscCall(PetscViewerASCIISynchronizedPrintf(vascii->bviewer, "%s", string)); in PetscViewerASCIISynchronizedPrintf()
1133 PetscCall(PetscFree(string)); in PetscViewerASCIISynchronizedPrintf()
1156 char *string; in PetscViewerASCIISynchronizedPrintf() local
1170 PetscCall(PetscCalloc1(next->size, &next->string)); in PetscViewerASCIISynchronizedPrintf()
1171 string = next->string; in PetscViewerASCIISynchronizedPrintf()
1175 while (tab--) *string++ = ' '; in PetscViewerASCIISynchronizedPrintf()
1177 PetscCall(PetscVSNPrintf(string, next->size - 2 * vascii->tab, format, &fullLength, Argp)); in PetscViewerASCIISynchronizedPrintf()
1180 PetscCall(PetscFree(next->string)); in PetscViewerASCIISynchronizedPrintf()
1182 PetscCall(PetscCalloc1(next->size, &next->string)); in PetscViewerASCIISynchronizedPrintf()
1183 string = next->string; in PetscViewerASCIISynchronizedPrintf()
1185 while (tab--) *string++ = ' '; in PetscViewerASCIISynchronizedPrintf()
1187 PetscCall(PetscVSNPrintf(string, next->size - 2 * vascii->tab, format, NULL, Argp)); in PetscViewerASCIISynchronizedPrintf()