Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 584) sorted by relevance

12345678910>>...24

/petsc/src/binding/petsc4py/src/petsc4py/include/petsc4py/
H A Dpybuffer.h36 int PyPetscBuffer_FillInfo(Py_buffer *view, in PyPetscBuffer_FillInfo() argument
40 if (view == NULL) return 0; in PyPetscBuffer_FillInfo()
45 view->buf = buf; in PyPetscBuffer_FillInfo()
47 case 'i': view->itemsize = sizeof(PetscInt); break; in PyPetscBuffer_FillInfo()
48 case 'r': view->itemsize = sizeof(PetscReal); break; in PyPetscBuffer_FillInfo()
49 case 's': view->itemsize = sizeof(PetscScalar); break; in PyPetscBuffer_FillInfo()
50 case 'c': view->itemsize = sizeof(PetscReal)*2; break; in PyPetscBuffer_FillInfo()
51 default: view->itemsize = 1; in PyPetscBuffer_FillInfo()
53 view->len = count*view->itemsize; in PyPetscBuffer_FillInfo()
54 view->readonly = readonly; in PyPetscBuffer_FillInfo()
[all …]
/petsc/src/mat/tests/
H A Dex16.c37 PetscViewer view; in main() local
65 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_WRITE, &view)); in main()
67 PetscCall(MatView(A, view)); in main()
68 PetscCall(PetscViewerPushFormat(view, PETSC_VIEWER_NATIVE)); in main()
69 PetscCall(MatView(A, view)); in main()
70 PetscCall(PetscViewerPopFormat(view)); in main()
72 PetscCall(PetscViewerDestroy(&view)); in main()
78 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
83 PetscCall(MatLoad(A, view)); in main()
86 PetscCall(PetscViewerDestroy(&view)); in main()
[all …]
H A Dex63f.F9018 PetscViewer view
45 PetscCallA(PetscViewerBinaryOpen(PETSC_COMM_SELF, 'dense.mat', FILE_MODE_WRITE, view, ierr))
46 PetscCallA(MatView(A, view, ierr))
47 PetscCallA(PetscViewerDestroy(view, ierr))
52 PetscCallA(PetscViewerBinaryOpen(PETSC_COMM_SELF, 'dense.mat', FILE_MODE_READ, view, ierr))
55 PetscCallA(MatLoad(A, view, ierr))
60 PetscCallA(PetscViewerDestroy(view, ierr))
69 PetscCallA(PetscViewerBinaryOpen(PETSC_COMM_WORLD, 'dense.mat', FILE_MODE_READ, view, ierr))
72 PetscCallA(MatLoad(A, view, ierr))
77 PetscCallA(PetscViewerDestroy(view, ierr))
H A Dex44.c38 PetscViewer view; in main() local
64 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_WRITE, &view)); in main()
65 for (i = 0; i < 3; i++) PetscCall(MatView(A, view)); in main()
66 PetscCall(PetscViewerDestroy(&view)); in main()
72 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
77 PetscCall(MatLoad(A, view)); in main()
80 PetscCall(PetscViewerDestroy(&view)); in main()
87 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_SELF, "matrix.dat", FILE_MODE_READ, &view)); in main()
92 PetscCall(MatLoad(A, view)); in main()
95 PetscCall(PetscViewerDestroy(&view)); in main()
[all …]
H A Dex45.c38 PetscViewer view; in main() local
65 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_WRITE, &view)); in main()
66 for (i = 0; i < 3; i++) PetscCall(MatView(A, view)); in main()
67 PetscCall(PetscViewerDestroy(&view)); in main()
73 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
78 PetscCall(MatLoad(A, view)); in main()
81 PetscCall(PetscViewerDestroy(&view)); in main()
88 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_SELF, "matrix.dat", FILE_MODE_READ, &view)); in main()
93 PetscCall(MatLoad(A, view)); in main()
96 PetscCall(PetscViewerDestroy(&view)); in main()
[all …]
H A Dex50.c42 PetscViewer view; in main() local
69 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_WRITE, &view)); in main()
70 for (i = 0; i < 3; i++) PetscCall(MatView(A, view)); in main()
71 PetscCall(PetscViewerDestroy(&view)); in main()
77 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
82 PetscCall(MatLoad(A, view)); in main()
85 PetscCall(PetscViewerDestroy(&view)); in main()
92 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_SELF, "matrix.dat", FILE_MODE_READ, &view)); in main()
97 PetscCall(MatLoad(A, view)); in main()
100 PetscCall(PetscViewerDestroy(&view)); in main()
[all …]
H A Dex143.c24 PetscBool view = PETSC_FALSE, use_interface = PETSC_TRUE; in main() local
29 PetscCall(PetscOptionsBool("-vec_view draw", "View the vectors", "ex143", view, &view, NULL)); in main()
68 if (view) PetscCall(VecView(x, PETSC_VIEWER_STDOUT_WORLD)); in main()
71 if (view) PetscCall(VecView(y, PETSC_VIEWER_STDOUT_WORLD)); in main()
78 if (view) PetscCall(VecView(z, PETSC_VIEWER_STDOUT_WORLD)); in main()
121 if (view) PetscCall(VecView(x, PETSC_VIEWER_STDOUT_WORLD)); in main()
125 if (view) PetscCall(VecView(y, PETSC_VIEWER_STDOUT_WORLD)); in main()
132 if (view) PetscCall(VecView(z, PETSC_VIEWER_STDOUT_WORLD)); in main()
H A Dex65.c10 PetscViewer view; in main() local
28 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "rect", FILE_MODE_WRITE, &view)); in main()
29 PetscCall(MatView(A, view)); in main()
30 PetscCall(PetscViewerDestroy(&view)); in main()
H A Dex121.c29 PetscBool view = PETSC_FALSE; in main() local
37 PetscCall(PetscOptionsBool("-vec_view draw", "View the functions", "ex112", view, &view, NULL)); in main()
71 if (view) PetscCall(VecView(x, PETSC_VIEWER_DRAW_WORLD)); in main()
82 if (view) PetscCall(VecView(w, PETSC_VIEWER_DRAW_WORLD)); in main()
91 if (view && i == 0) PetscCall(VecView(y1, PETSC_VIEWER_DRAW_WORLD)); in main()
116 if (view) PetscCall(VecView(z1, PETSC_VIEWER_DRAW_WORLD)); in main()
117 if (view) PetscCall(VecView(z2, PETSC_VIEWER_DRAW_WORLD)); in main()
H A Dex174.cxx13 PetscViewer view; in main() local
27 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, file[0], FILE_MODE_READ, &view)); in main()
32 PetscCall(MatLoad(A, view)); in main()
33 PetscCall(PetscViewerDestroy(&view)); in main()
37 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, file[1], FILE_MODE_READ, &view)); in main()
42 PetscCall(MatLoad(B, view)); in main()
43 PetscCall(PetscViewerDestroy(&view)); in main()
H A Dex112.c29 PetscBool view = PETSC_FALSE; in main() local
37 PetscCall(PetscOptionsBool("-vec_view_draw", "View the functions", "ex112", view, &view, NULL)); in main()
70 if (view) PetscCall(VecView(x, PETSC_VIEWER_DRAW_WORLD)); in main()
75 if (view && i == 0) PetscCall(VecView(y, PETSC_VIEWER_DRAW_WORLD)); in main()
81 if (view && i == 0) PetscCall(VecView(z, PETSC_VIEWER_DRAW_WORLD)); in main()
99 if (view && i == 0) PetscCall(VecView(z, PETSC_VIEWER_DRAW_WORLD)); in main()
H A Dex244.cxx12 PetscViewer view; in main() local
26 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, file[0], FILE_MODE_READ, &view)); in main()
31 PetscCall(MatLoad(A, view)); in main()
32 PetscCall(PetscViewerDestroy(&view)); in main()
36 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, file[1], FILE_MODE_READ, &view)); in main()
41 PetscCall(MatLoad(B, view)); in main()
42 PetscCall(PetscViewerDestroy(&view)); in main()
/petsc/src/dm/interface/
H A Ddmglvis.c18 PetscViewer view; in DMView_GLVis() local
21 PetscCall(PetscViewerGLVisGetDMWindow_Internal(viewer, &view)); in DMView_GLVis()
22 if (!view) PetscFunctionReturn(PETSC_SUCCESS); /* socket window has been closed */ in DMView_GLVis()
33 PetscCall(PetscGLVisCollectiveBegin(PetscObjectComm((PetscObject)dm), &view)); in DMView_GLVis()
34 PetscCall(PetscViewerASCIIPrintf(view, "parallel %d %d\nmesh\n", size, rank)); in DMView_GLVis()
35 PetscCall(DMView_GLVis_ASCII(dm, view)); in DMView_GLVis()
36 PetscCall(PetscViewerGLVisInitWindow_Internal(view, PETSC_TRUE, sdim, name)); in DMView_GLVis()
37 PetscCall(PetscGLVisCollectiveEnd(PetscObjectComm((PetscObject)dm), &view)); in DMView_GLVis()
39 PetscCall(DMView_GLVis_ASCII(dm, view)); in DMView_GLVis()
41 PetscCall(PetscViewerGLVisRestoreDMWindow_Internal(viewer, &view)); in DMView_GLVis()
/petsc/src/vec/vec/utils/
H A Dvecglvis.c79 PetscViewer view; in VecView_GLVis() local
82 PetscCall(PetscViewerGLVisGetWindow_Internal(viewer, i, &view)); in VecView_GLVis()
83 if (!view) continue; /* socket window has been closed */ in VecView_GLVis()
92 PetscCall(PetscGLVisCollectiveBegin(PetscObjectComm(dm), &view)); in VecView_GLVis()
93 PetscCall(PetscViewerASCIIPrintf(view, "parallel %d %d\nsolution\n", size, rank)); in VecView_GLVis()
94 PetscCall(PetscObjectView(dm, view)); in VecView_GLVis()
95 PetscCall(VecView(Ufield[i], view)); in VecView_GLVis()
96 PetscCall(PetscViewerGLVisInitWindow_Internal(view, PETSC_FALSE, spacedim[i], name)); in VecView_GLVis()
97 PetscCall(PetscGLVisCollectiveEnd(PetscObjectComm(dm), &view)); in VecView_GLVis()
98 if (view) pause = PETSC_TRUE; /* at least one window is connected */ in VecView_GLVis()
[all …]
/petsc/src/sys/classes/bag/
H A Dbag.c648 PetscErrorCode PetscBagView(PetscBag bag, PetscViewer view) in PetscBagView() argument
655 PetscValidHeaderSpecific(view, PETSC_VIEWER_CLASSID, 2); in PetscBagView()
656 PetscCall(PetscObjectTypeCompare((PetscObject)view, PETSCVIEWERASCII, &isascii)); in PetscBagView()
657 PetscCall(PetscObjectTypeCompare((PetscObject)view, PETSCVIEWERBINARY, &isbinary)); in PetscBagView()
660 …PetscCall(PetscViewerASCIIPrintf(view, "PetscBag Object: %s (%s) %s\n", bag->bagname, bag->bagpre… in PetscBagView()
662 … PetscCall(PetscViewerASCIIPrintf(view, "PetscBag Object: %s %s\n", bag->bagname, bag->baghelp)); in PetscBagView()
669 PetscCall(PetscViewerASCIIPrintf(view, " %s = %s; %s\n", nitem->name, value, nitem->help)); in PetscBagView()
674 PetscCall(PetscViewerASCIIPrintf(view, " %s = ", nitem->name)); in PetscBagView()
675 …for (i = 0; i < nitem->msize; i++) PetscCall(PetscViewerASCIIPrintf(view, "%g ", (double)value[i])… in PetscBagView()
676 PetscCall(PetscViewerASCIIPrintf(view, "; %s\n", nitem->help)); in PetscBagView()
[all …]
/petsc/src/binding/petsc4py/demo/legacy/dmplex/
H A Ddistribute_field.py35 plex.view()
53 origSect.view()
57 origVec.view()
63 origVec.view()
67 sf.view()
75 newSect.view()
76 newVec.view()
/petsc/src/dm/tests/
H A Dex47.c17 PetscViewer view; in test_3d() local
41 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_3d()
42 PetscCall(VecView(v, view)); in test_3d()
43 PetscCall(PetscViewerDestroy(&view)); in test_3d()
60 PetscViewer view; in test_2d() local
80 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_2d()
81 PetscCall(VecView(v, view)); in test_2d()
82 PetscCall(PetscViewerDestroy(&view)); in test_2d()
99 PetscViewer view; in test_2d_nocoord() local
118 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_2d_nocoord()
[all …]
H A Dex42.c19 PetscViewer view; in test_3d() local
43 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_3d()
44 PetscCall(VecView(v, view)); in test_3d()
45 PetscCall(PetscViewerDestroy(&view)); in test_3d()
62 PetscViewer view; in test_2d() local
82 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_2d()
83 PetscCall(VecView(v, view)); in test_2d()
84 PetscCall(PetscViewerDestroy(&view)); in test_2d()
101 PetscViewer view; in test_2d_nocoord() local
120 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_2d_nocoord()
[all …]
H A Dex48.c31 PetscViewer view; in test_3d() local
56 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_3d()
57 PetscCall(VecView(v, view)); in test_3d()
58 PetscCall(PetscViewerDestroy(&view)); in test_3d()
74 PetscViewer view; in test_2d() local
95 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_2d()
96 PetscCall(VecView(v, view)); in test_2d()
97 PetscCall(PetscViewerDestroy(&view)); in test_2d()
113 PetscViewer view; in test_3d_compat() local
144 PetscCall(PetscViewerVTKOpen(comm, filename, FILE_MODE_WRITE, &view)); in test_3d_compat()
[all …]
/petsc/src/snes/tutorials/output/
H A Dex6_1.out1 Customized KSP converged reason view
3 Customized KSP converged reason view
5 Customized KSP converged reason view
7 Customized SNES converged reason view
H A Dex6_1_alt.out1 Customized KSP converged reason view
3 Customized KSP converged reason view
5 Customized KSP converged reason view
7 Customized SNES converged reason view
H A Dex6_1_alt_2.out1 Customized KSP converged reason view
3 Customized KSP converged reason view
5 Customized KSP converged reason view
7 Customized SNES converged reason view
H A Dex6_4.out1 Customized KSP converged reason view
3 Customized KSP converged reason view
5 Customized KSP converged reason view
H A Dex6_5_alt_2.out1 Customized KSP converged reason view
3 Customized KSP converged reason view
5 Customized KSP converged reason view
/petsc/src/ksp/ksp/interface/
H A Diguess.c163 PetscErrorCode KSPGuessView(KSPGuess guess, PetscViewer view) in KSPGuessView() argument
169 if (!view) PetscCall(PetscViewerASCIIGetStdout(PetscObjectComm((PetscObject)guess), &view)); in KSPGuessView()
170 PetscValidHeaderSpecific(view, PETSC_VIEWER_CLASSID, 2); in KSPGuessView()
171 PetscCheckSameComm(guess, 1, view, 2); in KSPGuessView()
172 PetscCall(PetscObjectTypeCompare((PetscObject)view, PETSCVIEWERASCII, &ascii)); in KSPGuessView()
174 PetscCall(PetscObjectPrintClassNamePrefixType((PetscObject)guess, view)); in KSPGuessView()
175 PetscCall(PetscViewerASCIIPushTab(view)); in KSPGuessView()
176 PetscTryTypeMethod(guess, view, view); in KSPGuessView()
177 PetscCall(PetscViewerASCIIPopTab(view)); in KSPGuessView()

12345678910>>...24