| /petsc/src/snes/tutorials/ex10d/ |
| H A D | ex10.c | 167 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Rank is %d\n", rank)); in main() 173 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Node %" PetscInt_FMT " belongs to processor %" Pet… in main() 178 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Number of neighbors for the vertex %" PetscInt_FMT… in main() 190 … PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "%" PetscInt_FMT " ", user.AdjM[user.Nvlocal][i])); in main() 192 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "\n")); in main() 196 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Total # of Local Vertices is %" PetscInt_FMT " \n"… in main() 230 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Before AOApplicationToPetsc, local indices are : \… in main() 232 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, " %" PetscInt_FMT " ", user.gloInd[i])); in main() 236 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "\n")); in main() 239 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fptr1, "Neghbors of local vertex %" PetscInt_FMT " are : "… in main() [all …]
|
| /petsc/src/dm/impls/da/ |
| H A D | grvtk.c | 70 PetscCall(PetscFPrintf(comm, fp, "<?xml version=\"1.0\"?>\n")); in DMDAVTKWriteAll_VTS() 71 …PetscCall(PetscFPrintf(comm, fp, "<VTKFile type=\"StructuredGrid\" version=\"0.1\" byte_order=\"%s… in DMDAVTKWriteAll_VTS() 72 …PetscCall(PetscFPrintf(comm, fp, " <StructuredGrid WholeExtent=\"%d %" PetscInt_FMT " %d %" Petsc… in DMDAVTKWriteAll_VTS() 100 …PetscCall(PetscFPrintf(comm, fp, " <Piece Extent=\"%" PetscInt_FMT " %" PetscInt_FMT " %" Petsc… in DMDAVTKWriteAll_VTS() 101 PetscCall(PetscFPrintf(comm, fp, " <Points>\n")); in DMDAVTKWriteAll_VTS() 102 …PetscCall(PetscFPrintf(comm, fp, " <DataArray type=\"%s\" Name=\"Position\" NumberOfCompone… in DMDAVTKWriteAll_VTS() 104 PetscCall(PetscFPrintf(comm, fp, " </Points>\n")); in DMDAVTKWriteAll_VTS() 106 PetscCall(PetscFPrintf(comm, fp, " <PointData Scalars=\"ScalarPointData\">\n")); in DMDAVTKWriteAll_VTS() 131 …PetscCall(PetscFPrintf(comm, fp, " <DataArray type=\"%s\" Name=\"%s.%s\" NumberOfComponents… in DMDAVTKWriteAll_VTS() 135 …PetscCall(PetscFPrintf(comm, fp, " <DataArray type=\"%s\" Name=\"%s\" NumberOfComponents=\"… in DMDAVTKWriteAll_VTS() [all …]
|
| H A D | gr2.c | 737 …PetscCall(PetscFPrintf(comm, info, "#--- begin code written by PetscViewerBinary for MATLAB format… in VecView_MPI_DA() 738 PetscCall(PetscFPrintf(comm, info, "#$$ tmp = PetscBinaryRead(fd); \n")); in VecView_MPI_DA() 739 …if (dim == 1) PetscCall(PetscFPrintf(comm, info, "#$$ tmp = reshape(tmp,%" PetscInt_FMT ",%" Petsc… in VecView_MPI_DA() 740 …if (dim == 2) PetscCall(PetscFPrintf(comm, info, "#$$ tmp = reshape(tmp,%" PetscInt_FMT ",%" Petsc… in VecView_MPI_DA() 741 …if (dim == 3) PetscCall(PetscFPrintf(comm, info, "#$$ tmp = reshape(tmp,%" PetscInt_FMT ",%" Petsc… in VecView_MPI_DA() 749 …if (dim == 1) PetscCall(PetscFPrintf(comm, info, "#$$ Set.%s.%s = squeeze(tmp(%" PetscInt_FMT ",:)… in VecView_MPI_DA() 750 …if (dim == 2) PetscCall(PetscFPrintf(comm, info, "#$$ Set.%s.%s = squeeze(tmp(%" PetscInt_FMT ",:,… in VecView_MPI_DA() 751 …if (dim == 3) PetscCall(PetscFPrintf(comm, info, "#$$ Set.%s.%s = permute(squeeze(tmp(%" PetscInt_… in VecView_MPI_DA() 753 PetscCall(PetscFPrintf(comm, info, "#$$ clear tmp; \n")); in VecView_MPI_DA() 754 …PetscCall(PetscFPrintf(comm, info, "#--- end code written by PetscViewerBinary for MATLAB format -… in VecView_MPI_DA()
|
| /petsc/src/snes/interface/noise/ |
| H A D | snesnoise.c | 112 PetscCall(PetscFPrintf(comm, fp, "\n ------- SNES iteration %" PetscInt_FMT " ---------\n", i)); in SNESDiffParameterCompute_More() 135 PetscCall(PetscFPrintf(comm, fp, "Difference Table: iter = %" PetscInt_FMT "\n", iter)); in SNESDiffParameterCompute_More() 137 for (j = 0; j < nf - i; j++) PetscCall(PetscFPrintf(comm, fp, " %10.2e ", tab[i][j])); in SNESDiffParameterCompute_More() 138 PetscCall(PetscFPrintf(comm, fp, "\n")); in SNESDiffParameterCompute_More() 146 if (info == 1) PetscCall(PetscFPrintf(comm, fp, "%s\n", "Noise detected")); in SNESDiffParameterCompute_More() 147 if (info == 2) PetscCall(PetscFPrintf(comm, fp, "%s\n", "Noise not detected; h is too small")); in SNESDiffParameterCompute_More() 148 if (info == 3) PetscCall(PetscFPrintf(comm, fp, "%s\n", "Noise not detected; h is too large")); in SNESDiffParameterCompute_More() 149 if (info == 4) PetscCall(PetscFPrintf(comm, fp, "%s\n", "Noise detected, but unreliable hopt")); in SNESDiffParameterCompute_More() 150 …PetscCall(PetscFPrintf(comm, fp, "Approximate epsfcn %g %g %g %g %g %g\n", (double)eps[0], (d… in SNESDiffParameterCompute_More() 151 …PetscCall(PetscFPrintf(comm, fp, "h = %g, fnoise = %g, fder2 = %g, rerrf = %g, hopt = %g\n\n", (do… in SNESDiffParameterCompute_More() [all …]
|
| /petsc/src/sys/classes/draw/impls/tikz/ |
| H A D | tikz.c | 50 PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, TikZ_END_FRAME)); in PetscDrawDestroy_TikZ() 51 PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, TikZ_END_DOCUMENT)); in PetscDrawDestroy_TikZ() 80 PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, TikZ_END_FRAME)); in PetscDrawClear_TikZ() 81 PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, TikZ_BEGIN_FRAME)); in PetscDrawClear_TikZ() 92 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\draw [%s] (%g,%g) --(%g,%g)… in PetscDrawLine_TikZ() 102 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\fill [bottom color=%s,top c… in PetscDrawRectangle_TikZ() 112 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\fill [color=%s] (%g,%g) -- … in PetscDrawTriangle_TikZ() 125 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\fill [color=%s] (%g,%g) cir… in PetscDrawEllipse_TikZ() 135 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\node [above right, %s] at (… in PetscDrawString_TikZ() 150 …PetscCall(PetscFPrintf(PetscObjectComm((PetscObject)draw), win->fd, "\\node [rotate=90, %s] at (%g… in PetscDrawStringVertical_TikZ() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexvtu.c | 199 PetscCall(PetscFPrintf(comm, fp, "<?xml version=\"1.0\"?>\n")); in DMPlexVTKWriteAll_VTU() 200 …PetscCall(PetscFPrintf(comm, fp, "<VTKFile type=\"UnstructuredGrid\" version=\"0.1\" byte_order=\"… in DMPlexVTKWriteAll_VTU() 201 PetscCall(PetscFPrintf(comm, fp, " <UnstructuredGrid>\n")); in DMPlexVTKWriteAll_VTU() 245 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <Piece NumberOfPoints=\"%" PetscInt_FMT "\" Numbe… in DMPlexVTKWriteAll_VTU() 247 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <Points>\n")); in DMPlexVTKWriteAll_VTU() 248 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <DataArray type=\"%s\" Name=\"Position\" Numb… in DMPlexVTKWriteAll_VTU() 250 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " </Points>\n")); in DMPlexVTKWriteAll_VTU() 252 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <Cells>\n")); in DMPlexVTKWriteAll_VTU() 253 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <DataArray type=\"Int32\" Name=\"connectivity… in DMPlexVTKWriteAll_VTU() 255 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, " <DataArray type=\"Int32\" Name=\"offsets\" … in DMPlexVTKWriteAll_VTU() [all …]
|
| /petsc/src/sys/utils/ |
| H A D | mpitr.c | 38 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fd, "[%d]You have not waited on all non-blocking sends and… in PetscMPIDump() 39 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fd, "[%d]Number non-blocking sends %g receives %g number o… in PetscMPIDump() 49 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fd, "Total number sends %g not equal receives %g\n", tsend… in PetscMPIDump()
|
| /petsc/src/sys/tests/ |
| H A D | ex2.c | 20 …PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "Demonstrates how PETSc can trap error interrupts… in main() 21 …PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "The error below is contrived to test the code!\n… in main()
|
| H A D | ex1.c | 16 PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "Demonstrates PETSc Error Handlers\n")); in main() 17 …PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "The error is a contrived error to test error han… in main()
|
| H A D | ex66.c | 18 PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "Demonstrates PETSc Error Handlers\n")); in main() 19 …PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "The error is a contrived error to test error han… in main()
|
| H A D | ex17.c | 19 PetscCall(PetscFPrintf(comm, fp, line1)); in main() 20 PetscCall(PetscFPrintf(comm, fp, line2)); in main()
|
| H A D | ex73.c | 12 PetscCall(PetscFPrintf(PETSC_COMM_WORLD, file, "Testing error handling with bad \n")); in main()
|
| H A D | ex17f.F90 | 20 PetscCallA(PetscFPrintf(PETSC_COMM_WORLD, file, 'Hi once \n', ierr))
|
| /petsc/src/mat/utils/ |
| H A D | matio.c | 18 …if (rbs != cbs) PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "-matload_block_size %" PetscInt_FMT… in MatView_Binary_BlockSizes() 19 …else PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "-matload_block_size %" PetscInt_FMT "\n", rbs)… in MatView_Binary_BlockSizes()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex49.c | 276 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### Element geometry for processor %1.4d ### \n", ran… in DMDACoordViewGnuplot2d() 284 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j][i].… in DMDACoordViewGnuplot2d() 285 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j + 1]… in DMDACoordViewGnuplot2d() 286 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j + 1]… in DMDACoordViewGnuplot2d() 287 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j][i +… in DMDACoordViewGnuplot2d() 288 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n\n", (double)PetscRealPart(_coords[j][i… in DMDACoordViewGnuplot2d() 316 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### %s (processor %1.4d) ### \n", comment, rank)); in DMDAViewGnuplot2d() 318 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### x y ")); in DMDAViewGnuplot2d() 321 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%s ", field_name)); in DMDAViewGnuplot2d() 323 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "###\n")); in DMDAViewGnuplot2d() [all …]
|
| H A D | ex42.c | 1451 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, "<?xml version=\"1.0\"?>\n")); in DAView_3DVTK_StructuredGrid_appended() 1457 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, "<VTKFile type=\"StructuredGrid\" version=\"0.1\" … in DAView_3DVTK_StructuredGrid_appended() 1458 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <StructuredGrid WholeExtent=\"%" PetscInt_FMT "… in DAView_3DVTK_StructuredGrid_appended() 1459 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <Piece Extent=\"%" PetscInt_FMT " %" PetscInt… in DAView_3DVTK_StructuredGrid_appended() 1463 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <CellData></CellData>\n")); in DAView_3DVTK_StructuredGrid_appended() 1465 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <Points>\n")); in DAView_3DVTK_StructuredGrid_appended() 1470 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <DataArray type=\"Float64\" NumberOfCompo… in DAView_3DVTK_StructuredGrid_appended() 1473 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " </Points>\n")); in DAView_3DVTK_StructuredGrid_appended() 1475 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, " <PointData Scalars=\" ")); in DAView_3DVTK_StructuredGrid_appended() 1480 PetscCall(PetscFPrintf(PETSC_COMM_SELF, vtk_fp, "%s ", field_name)); in DAView_3DVTK_StructuredGrid_appended() [all …]
|
| H A D | ex43.c | 329 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### Element geometry for processor %1.4d ### \n", ran… in DMDACoordViewGnuplot2d() 337 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j][i].… in DMDACoordViewGnuplot2d() 338 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j + 1]… in DMDACoordViewGnuplot2d() 339 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j + 1]… in DMDACoordViewGnuplot2d() 340 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n", (double)PetscRealPart(_coords[j][i +… in DMDACoordViewGnuplot2d() 341 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%1.6e %1.6e \n\n", (double)PetscRealPart(_coords[j][i… in DMDACoordViewGnuplot2d() 368 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### %s (processor %1.4d) ### \n", comment, rank)); in DMDAViewGnuplot2d() 370 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "### x y ")); in DMDAViewGnuplot2d() 374 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "%s ", field_name)); in DMDAViewGnuplot2d() 376 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fp, "###\n")); in DMDAViewGnuplot2d() [all …]
|
| /petsc/src/vec/vec/utils/ |
| H A D | vecio.c | 51 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "#--- begin code written by PetscViewerBinary for MA… in VecView_Binary() 52 PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "#$$ Set.%s = PetscBinaryRead(fd);\n", name)); in VecView_Binary() 53 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "#--- end code written by PetscViewerBinary for MATL… in VecView_Binary() 58 …if (rank == 0 && info) PetscCall(PetscFPrintf(PETSC_COMM_SELF, info, "-%svecload_block_size %" Pet… in VecView_Binary()
|
| /petsc/src/sys/objects/ |
| H A D | init.c | 119 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "----------------------------------------\n")); in PetscOpenHistoryFile() 120 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "%s %s\n", version, date)); in PetscOpenHistoryFile() 122 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "%s on a %s, %d proc. with options:\n", pname, arch, … in PetscOpenHistoryFile() 123 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "----------------------------------------\n")); in PetscOpenHistoryFile() 141 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "----------------------------------------\n")); in PetscCloseHistoryFile() 142 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "Finished at %s\n", date)); in PetscCloseHistoryFile() 143 PetscCall(PetscFPrintf(PETSC_COMM_SELF, *fd, "----------------------------------------\n")); in PetscCloseHistoryFile()
|
| /petsc/src/sys/logging/handler/impls/trace/ |
| H A D | logtrace.c | 30 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, tr->petsc_tracefile, "%s[%d] %g Event begin: %s\n", tr->pe… in PetscLogHandlerEventBegin_Trace() 56 …PetscCall(PetscFPrintf(PETSC_COMM_SELF, tr->petsc_tracefile, "%s[%d] %g Event end: %s\n", tr->pets… in PetscLogHandlerEventEnd_Trace()
|
| /petsc/src/sys/tests/output/ |
| H A D | ex73_0.out | 7 [0]PETSC ERROR: #3 PetscFPrintf() at mprint.c:0
|
| H A D | ex73_0_alt_2.out | 9 [0]PETSC ERROR: #3 PetscFPrintf() at mprint.c:0
|
| H A D | ex73_0_alt.out | 8 [0]PETSC ERROR: #4 PetscFPrintf() at mprint.c:0
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex18.c | 32 …PetscCall(PetscFPrintf(PETSC_COMM_WORLD, stdout, "Vector inner product %16.12e\n", (double)PetscRe… in main()
|
| /petsc/src/benchmarks/streams/ |
| H A D | MPIVersion.c | 66 PetscCall(PetscFPrintf(PETSC_COMM_SELF, fd, "%g\n", rate)); in main()
|