| /petsc/src/mat/tests/ |
| H A D | ex84.c | 38 …etscErrorCode GetReader(MPI_Comm comm, const char option[], PetscViewer *r, PetscViewerFormat *fmt) in GetReader() argument 43 PetscCall(PetscOptionsCreateViewer(PETSC_COMM_SELF, NULL, NULL, option, r, fmt, &flg)); in GetReader() 58 PetscViewerFormat fmt; in main() local 70 PetscCall(GetReader(PETSC_COMM_SELF, "-serial_reader", &inp_viewer, &fmt)); in main() 71 PetscCall(PetscViewerPushFormat(inp_viewer, fmt)); in main() 82 PetscCall(GetReader(PETSC_COMM_WORLD, "-parallel_reader", &inp_viewer, &fmt)); in main() 83 PetscCall(PetscViewerPushFormat(inp_viewer, fmt)); in main()
|
| H A D | cJSON.h | 156 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);
|
| H A D | cJSON.c | 1007 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt) in cJSON_PrintBuffered() argument 1021 p.format = fmt; in cJSON_PrintBuffered()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex75f.F90 | 18 character*(8) fmt 34 fmt = '(I3)' 35 write (cmat, fmt) j
|
| /petsc/lib/petsc/bin/maint/ |
| H A D | petscdt_create_quadrature_headers.py | 173 …fmt = printer_wide.pformat(["PetscRealConstant({0:e})".format(w) for w in node]).replace('[',' ').… 175 fmt = re.sub('\s*]','',fmt) 177 fmt = re.sub('\s*]',',',fmt) 178 lines.append(fmt)
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex99.c | 83 PetscInt fmt = 2; in main() local 107 …PetscOptionsGetEList(NULL, NULL, "-fmt", fmtlist, PETSC_STATIC_ARRAY_LENGTH(fmtlist), &fmt, NULL)); in main() 111 if (fmt == 1) bin = PETSC_FALSE; /* Recent Gmsh releases cannot generate msh40+binary format*/ in main() 126 … sizeof(tag), "%s-%d-%d-%s%s", mshlist[msh], (int)dim, (int)order, fmtlist[fmt], bin ? "-bin" : ""… in main() 136 …PetscCall(PetscSNPrintf(cmd, sizeof(cmd), cmdtemplate, gmsh, fmtlist[fmt], bin ? "-bin" : "", (int… in main()
|
| /petsc/src/sys/classes/viewer/impls/glvis/ |
| H A D | glvis.c | 29 …char *fmt; /* format string for FP … member 59 PetscCall(PetscFree(socket->fmt)); in PetscViewerGLVisSetPrecision_GLVis() 61 PetscCall(PetscMalloc1(16, &socket->fmt)); in PetscViewerGLVisSetPrecision_GLVis() 62 PetscCall(PetscSNPrintf(socket->fmt, 16, " %%.%" PetscInt_FMT "e", prec)); in PetscViewerGLVisSetPrecision_GLVis() 64 PetscCall(PetscStrallocpy(" %g", &socket->fmt)); in PetscViewerGLVisSetPrecision_GLVis() 177 PetscCall(PetscFree(info->fmt)); in PetscViewerGLVisInfoDestroy_Private() 202 PetscCall(PetscFree(info->fmt)); in PetscViewerGLVisAttachInfo_Private() 203 PetscCall(PetscStrallocpy(socket->fmt, &info->fmt)); in PetscViewerGLVisAttachInfo_Private() 521 PetscCall(PetscFree(socket->fmt)); in PetscViewerDestroy_GLVis() 697 PetscCall(PetscStrallocpy(" %g", &socket->fmt)); in PetscViewerCreate_GLVis()
|
| /petsc/src/sys/ftn-src/ |
| H A D | somefort.F90 | 32 write (unit=unit, fmt="(A)", advance='no') str
|
| /petsc/include/petsc/private/ |
| H A D | glvisviewerimpl.h | 16 char *fmt; /* format */ member
|
| /petsc/src/vec/is/is/impls/general/ |
| H A D | general.c | 475 PetscViewerFormat fmt; in ISView_General() local 482 PetscCall(PetscViewerGetFormat(viewer, &fmt)); in ISView_General() 484 …if (isperm && fmt != PETSC_VIEWER_ASCII_MATLAB) PetscCall(PetscViewerASCIIPrintf(viewer, "Index se… in ISView_General() 487 if (fmt == PETSC_VIEWER_ASCII_MATLAB) { in ISView_General() 497 if (fmt == PETSC_VIEWER_ASCII_INDEX) st = is->map->rstart; in ISView_General() 502 if (fmt == PETSC_VIEWER_ASCII_MATLAB) { in ISView_General() 512 if (fmt == PETSC_VIEWER_ASCII_INDEX) st = is->map->rstart; in ISView_General()
|
| /petsc/src/vec/is/is/impls/stride/ |
| H A D | stride.c | 172 PetscViewerFormat fmt; in ISView_Stride() local 182 PetscCall(PetscViewerGetFormat(viewer, &fmt)); in ISView_Stride() 183 matl = (PetscBool)(fmt == PETSC_VIEWER_ASCII_MATLAB); in ISView_Stride()
|
| /petsc/src/dm/dt/fe/impls/vector/ |
| H A D | fevector.c | 29 PetscViewerFormat fmt; in PetscFEView_Vector_Ascii() local 39 PetscCall(PetscViewerGetFormat(v, &fmt)); in PetscFEView_Vector_Ascii() 46 if (fmt == PETSC_VIEWER_ASCII_INFO_DETAIL) { in PetscFEView_Vector_Ascii()
|
| /petsc/src/dm/impls/da/ |
| H A D | grglvis.c | 346 const char *fmt; in DMDAView_GLVis_ASCII() local 364 fmt = glvis_info->fmt; in DMDAView_GLVis_ASCII() 497 …for (d = 0; d < sdim; d++) PetscCall(PetscViewerASCIIPrintf(viewer, fmt, PetscRealPart(array[cdof … in DMDAView_GLVis_ASCII()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | PETSc.pyx | 445 FILE *fd, const char fmt[], va_list ap, 452 CHKERR(PetscVSNPrintf(&cstring[0], stringlen, fmt, &final_pos, ap)) 458 CHKERR(PetscVSNPrintf(&cstring[0], stringlen, fmt, &final_pos, ap)) 464 CHKERR(PetscVFPrintfDefault(fd, fmt, ap))
|
| /petsc/src/vec/is/is/impls/block/ |
| H A D | block.c | 138 PetscViewerFormat fmt; in ISView_Block() local 140 PetscCall(PetscViewerGetFormat(viewer, &fmt)); in ISView_Block() 141 if (fmt == PETSC_VIEWER_ASCII_MATLAB) { in ISView_Block()
|
| /petsc/src/sys/fileio/ |
| H A D | mprint.c | 748 PetscErrorCode PetscFormatRealArray(char buf[], size_t len, const char *fmt, PetscInt n, const Pets… in PetscFormatRealArray() argument 756 PetscCall(PetscSNPrintfCount(p, left, fmt, &count, (double)x[i])); in PetscFormatRealArray()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexglvis.c | 465 const char *fmt; in DMPlexView_GLVis_ASCII() local 485 fmt = glvis_info->fmt; in DMPlexView_GLVis_ASCII() 1143 …for (s = 0; s < sdim; s++) PetscCall(PetscViewerASCIIPrintf(viewer, fmt, (double)PetscRealPart(val… in DMPlexView_GLVis_ASCII() 1153 …for (s = 0; s < sdim; s++) PetscCall(PetscViewerASCIIPrintf(viewer, fmt, (double)PetscRealPart(arr… in DMPlexView_GLVis_ASCII() 1169 PetscCall(PetscViewerASCIIPrintf(viewer, fmt, PetscIsInfOrNanReal(v) ? 0.0 : (double)v)); in DMPlexView_GLVis_ASCII()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex56.c | 407 PetscViewerFormat fmt; in main() local 408 PetscCall(PetscOptionsCreateViewer(comm, NULL, "", "-vec_view", &viewer, &fmt, &flg)); in main() 410 PetscCall(PetscViewerPushFormat(viewer, fmt)); in main()
|
| /petsc/src/vec/vec/impls/seq/ |
| H A D | bvec2.c | 314 PetscCall(PetscViewerASCIIPrintf(viewer, glvis_info->fmt, (double)PetscRealPart(array[i]))); in VecView_Seq_ASCII()
|
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pdvec.c | 205 … PetscCall(PetscViewerASCIIPrintf(viewer, glvis_info->fmt, (double)PetscRealPart(array[i]))); in VecView_MPI_ASCII()
|