Lines Matching refs:view
37 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()
95 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_WRITE, &view)); in main()
96 PetscCall(MatView(A, view)); in main()
100 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_TRUE)); in main()
101 PetscCall(MatView(A, view)); in main()
102 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_FALSE)); in main()
103 PetscCall(PetscViewerDestroy(&view)); in main()
108 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
109 PetscCall(MatLoad(A, view)); in main()
112 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_TRUE)); in main()
113 PetscCall(MatLoad(A, view)); in main()
114 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_FALSE)); in main()
116 PetscCall(PetscViewerDestroy(&view)); in main()
126 PetscCall(PetscViewerBinaryOpen(PETSC_COMM_WORLD, "matrix.dat", FILE_MODE_READ, &view)); in main()
128 PetscCall(MatLoad(A, view)); in main()
130 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_TRUE)); in main()
131 PetscCall(MatLoad(A, view)); in main()
132 PetscCall(PetscViewerBinarySetSkipHeader(view, PETSC_FALSE)); in main()
135 PetscCall(PetscViewerDestroy(&view)); in main()