1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/966382dc56242773704ef5f5cee7aa2db3ebc577/include/petscviewer.h">Actual source code: petscviewer.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-04-30T18:14:50+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#B22222">/*</font>
<a name="line2"> 2: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a> are objects where other objects can be looked at or stored.</font>
<a name="line3"> 3: </a><font color="#B22222">*/</font>
<a name="line4"> 4: </a><font color="#A020F0">#pragma once</font>
<a name="line6"> 6: </a>#include <A href="../include/petscsys.h.html"><petscsys.h></A>
<a name="line7"> 7: </a>#include <A href="../include/petscviewertypes.h.html"><petscviewertypes.h></A>
<a name="line8"> 8: </a>#include <A href="../include/petscdrawtypes.h.html"><petscdrawtypes.h></A>
<a name="line10"> 10: </a><font color="#B22222">/* MANSEC = Sys */</font>
<a name="line11"> 11: </a><font color="#B22222">/* SUBMANSEC = Viewer */</font>
<a name="line13"> 13: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscClassId.html">PetscClassId</a> PETSC_VIEWER_CLASSID;
<a name="line15"> 15: </a><font color="#B22222">/*J</font>
<a name="line16"> 16: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a> - String with the name of a PETSc `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>` implementation</font>
<a name="line18"> 18: </a><font color="#B22222"> Level: beginner</font>
<a name="line20"> 20: </a><font color="#B22222">.seealso: [](sec_viewers), `<a href="../manualpages/Viewer/PetscViewerSetType.html">PetscViewerSetType</a>()`, `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`, `<a href="../manualpages/Viewer/PetscViewerRegister.html">PetscViewerRegister</a>()`, `<a href="../manualpages/Viewer/PetscViewerCreate.html">PetscViewerCreate</a>()`</font>
<a name="line21"> 21: </a><font color="#B22222">J*/</font>
<a name="line22"> 22: </a><font color="#4169E1">typedef const char *<a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>;</font>
<a name="line23"> 23: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERSOCKET.html">PETSCVIEWERSOCKET</a> </font><font color="#666666">"socket"</font><font color="#228B22"></font></strong>
<a name="line24"> 24: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERASCII.html">PETSCVIEWERASCII</a> </font><font color="#666666">"ascii"</font><font color="#228B22"></font></strong>
<a name="line25"> 25: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERBINARY.html">PETSCVIEWERBINARY</a> </font><font color="#666666">"binary"</font><font color="#228B22"></font></strong>
<a name="line26"> 26: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERSTRING.html">PETSCVIEWERSTRING</a> </font><font color="#666666">"string"</font><font color="#228B22"></font></strong>
<a name="line27"> 27: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERDRAW.html">PETSCVIEWERDRAW</a> </font><font color="#666666">"draw"</font><font color="#228B22"></font></strong>
<a name="line28"> 28: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERVU.html">PETSCVIEWERVU</a> </font><font color="#666666">"vu"</font><font color="#228B22"></font></strong>
<a name="line29"> 29: </a><strong><font color="#228B22">#define PETSCVIEWERMATHEMATICA </font><font color="#666666">"mathematica"</font><font color="#228B22"></font></strong>
<a name="line30"> 30: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERHDF5.html">PETSCVIEWERHDF5</a> </font><font color="#666666">"hdf5"</font><font color="#228B22"></font></strong>
<a name="line31"> 31: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERVTK.html">PETSCVIEWERVTK</a> </font><font color="#666666">"vtk"</font><font color="#228B22"></font></strong>
<a name="line32"> 32: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERMATLAB.html">PETSCVIEWERMATLAB</a> </font><font color="#666666">"matlab"</font><font color="#228B22"></font></strong>
<a name="line33"> 33: </a><strong><font color="#228B22">#define PETSCVIEWERSAWS </font><font color="#666666">"saws"</font><font color="#228B22"></font></strong>
<a name="line34"> 34: </a><strong><font color="#228B22">#define PETSCVIEWERGLVIS </font><font color="#666666">"glvis"</font><font color="#228B22"></font></strong>
<a name="line35"> 35: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERADIOS.html">PETSCVIEWERADIOS</a> </font><font color="#666666">"adios"</font><font color="#228B22"></font></strong>
<a name="line36"> 36: </a><strong><font color="#228B22">#define <a href="../manualpages/DMPlex/PETSCVIEWEREXODUSII.html">PETSCVIEWEREXODUSII</a> </font><font color="#666666">"exodusii"</font><font color="#228B22"></font></strong>
<a name="line37"> 37: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERCGNS.html">PETSCVIEWERCGNS</a> </font><font color="#666666">"cgns"</font><font color="#228B22"></font></strong>
<a name="line38"> 38: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERPYTHON.html">PETSCVIEWERPYTHON</a> </font><font color="#666666">"python"</font><font color="#228B22"></font></strong>
<a name="line39"> 39: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSCVIEWERPYVISTA.html">PETSCVIEWERPYVISTA</a> </font><font color="#666666">"pyvista"</font><font color="#228B22"></font></strong>
<a name="line41"> 41: </a>PETSC_EXTERN <a href="../manualpages/Sys/PetscFunctionList.html">PetscFunctionList</a> PetscViewerList;
<a name="line42"> 42: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerInitializePackage.html">PetscViewerInitializePackage</a>(void)</font></strong>;
<a name="line43"> 43: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFinalizePackage.html">PetscViewerFinalizePackage</a>(void)</font></strong>;
<a name="line45"> 45: </a><strong><font color="#4169E1"><a name="PetscViewerRegister"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerRegister.html">PetscViewerRegister</a>(const char[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>);
<a name="line47"> 47: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerCreate.html">PetscViewerCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line48"> 48: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSetFromOptions.html">PetscViewerSetFromOptions</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line49"> 49: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIOpenWithFILE.html">PetscViewerASCIIOpenWithFILE</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, FILE *, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line51"> 51: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIOpen.html">PetscViewerASCIIOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line52"> 52: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIISetFILE.html">PetscViewerASCIISetFILE</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, FILE *)</font></strong>;
<a name="line53"> 53: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryOpen.html">PetscViewerBinaryOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line54"> 54: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerADIOSOpen.html">PetscViewerADIOSOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line55"> 55: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetFlowControl.html">PetscViewerBinaryGetFlowControl</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line56"> 56: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySetFlowControl.html">PetscViewerBinarySetFlowControl</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line57"> 57: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySetUseMPIIO.html">PetscViewerBinarySetUseMPIIO</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line58"> 58: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetUseMPIIO.html">PetscViewerBinaryGetUseMPIIO</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line59"> 59: </a><font color="#A020F0">#if defined(PETSC_HAVE_MPIIO)</font>
<a name="line60"> 60: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetMPIIODescriptor.html">PetscViewerBinaryGetMPIIODescriptor</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, MPI_File *)</font></strong>;
<a name="line61"> 61: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetMPIIOOffset.html">PetscViewerBinaryGetMPIIOOffset</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, MPI_Offset *)</font></strong>;
<a name="line62"> 62: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryAddMPIIOOffset.html">PetscViewerBinaryAddMPIIOOffset</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, MPI_Offset)</font></strong>;
<a name="line63"> 63: </a><font color="#A020F0">#endif</font>
<a name="line65"> 65: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSocketOpen.html">PetscViewerSocketOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], int, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line66"> 66: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerStringOpen.html">PetscViewerStringOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, char[], size_t, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line67"> 67: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawOpen.html">PetscViewerDrawOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], const char[], int, int, int, int, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line68"> 68: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerDrawSetDrawType(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Draw/PetscDrawType.html">PetscDrawType</a>)</font></strong>;
<a name="line70"> 70: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaOpen.html">PetscViewerMathematicaOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, int, const char[], const char[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line71"> 71: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMatlabOpen.html">PetscViewerMatlabOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line73"> 73: </a><font color="#B22222">/*E</font>
<a name="line74"> 74: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewerGLVisType.html">PetscViewerGLVisType</a> - indicates what type of `PETSCVIEWERGLVIS` viewer to use</font>
<a name="line76"> 76: </a><font color="#B22222"> Values:</font>
<a name="line77"> 77: </a><font color="#B22222">+ `<a href="../manualpages/Viewer/PetscViewerGLVisType.html">PETSC_VIEWER_GLVIS_DUMP</a>` - save the data to a file</font>
<a name="line78"> 78: </a><font color="#B22222">- `<a href="../manualpages/Viewer/PetscViewerGLVisType.html">PETSC_VIEWER_GLVIS_SOCKET</a>` - communicate the data to another program via a socket</font>
<a name="line80"> 80: </a><font color="#B22222"> Level: beginner</font>
<a name="line82"> 82: </a><font color="#B22222">.seealso: [](sec_viewers), `PETSCVIEWERGLVIS`, `<a href="../manualpages/Viewer/PetscViewerGLVisOpen.html">PetscViewerGLVisOpen</a>()`</font>
<a name="line83"> 83: </a><font color="#B22222">E*/</font>
<a name="line84"> 84: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line85"> 85: </a> <a href="../manualpages/Viewer/PetscViewerGLVisType.html">PETSC_VIEWER_GLVIS_DUMP</a>,
<a name="line86"> 86: </a> <a href="../manualpages/Viewer/PetscViewerGLVisType.html">PETSC_VIEWER_GLVIS_SOCKET</a>
<a name="line87"> 87: </a>} <a href="../manualpages/Viewer/PetscViewerGLVisType.html">PetscViewerGLVisType</a>;
<a name="line88"> 88: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGLVisOpen.html">PetscViewerGLVisOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewerGLVisType.html">PetscViewerGLVisType</a>, const char *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line89"> 89: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGLVisSetPrecision.html">PetscViewerGLVisSetPrecision</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line90"> 90: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGLVisSetSnapId.html">PetscViewerGLVisSetSnapId</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line91"> 91: </a><strong><font color="#4169E1"><a name="PetscViewerGLVisSetFields"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGLVisSetFields.html">PetscViewerGLVisSetFields</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const char *[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>[], <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(<a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>[], void *), <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>[], void *, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*)(void *)</font></strong>);
<a name="line93"> 93: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGetType.html">PetscViewerGetType</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a> *)</font></strong>;
<a name="line94"> 94: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSetType.html">PetscViewerSetType</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>)</font></strong>;
<a name="line95"> 95: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDestroy.html">PetscViewerDestroy</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line96"> 96: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGetSubViewer.html">PetscViewerGetSubViewer</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line97"> 97: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerRestoreSubViewer.html">PetscViewerRestoreSubViewer</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line99"> 99: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSetUp.html">PetscViewerSetUp</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line100">100: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerView.html">PetscViewerView</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line101">101: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerViewFromOptions.html">PetscViewerViewFromOptions</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, const char[])</font></strong>;
<a name="line103">103: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSetOptionsPrefix.html">PetscViewerSetOptionsPrefix</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[])</font></strong>;
<a name="line104">104: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerAppendOptionsPrefix.html">PetscViewerAppendOptionsPrefix</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[])</font></strong>;
<a name="line105">105: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGetOptionsPrefix.html">PetscViewerGetOptionsPrefix</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *[])</font></strong>;
<a name="line107">107: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerReadable.html">PetscViewerReadable</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line108">108: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerWritable.html">PetscViewerWritable</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line109">109: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerCheckReadable.html">PetscViewerCheckReadable</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line110">110: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerCheckWritable.html">PetscViewerCheckWritable</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line112">112: </a><font color="#B22222">/*E</font>
<a name="line113">113: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> - Way a viewer presents the object</font>
<a name="line115">115: </a><font color="#B22222"> Values:</font>
<a name="line116">116: </a><font color="#B22222">+ `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DEFAULT</a>` - default format for the specific object being viewed</font>
<a name="line117">117: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_MATLAB</a>` - MATLAB format</font>
<a name="line118">118: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_DENSE</a>` - print matrix as a dense two dimensiona array</font>
<a name="line119">119: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_IMPL</a>` - implementation-specific format (which is in many cases the same as the default)</font>
<a name="line120">120: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INFO</a>` - basic information about object</font>
<a name="line121">121: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INFO_DETAIL</a>` - more detailed info about object (but still not vector or matrix entries)</font>
<a name="line122">122: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_COMMON</a>` - identical output format for all objects of a particular type</font>
<a name="line123">123: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INDEX</a>` - (for vectors) prints the vector element number next to each vector entry</font>
<a name="line124">124: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_SYMMODU</a>` - print parallel vectors without indicating the MPI process ranges that own the entries</font>
<a name="line125">125: </a><font color="#B22222">. `PETSC_VIEWER_ASCII_VTK` - outputs the object to a VTK file (deprecated since v3.14)</font>
<a name="line126">126: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_NATIVE</a>` - store the object to the binary file in its native format (for example, dense</font>
<a name="line127">127: </a><font color="#B22222"> matrices are stored as dense), `<a href="../manualpages/DMDA/DMDA.html">DMDA</a>` vectors are dumped directly to the</font>
<a name="line128">128: </a><font color="#B22222"> file instead of being first put in the natural ordering</font>
<a name="line129">129: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_LATEX</a>` - output the data in LaTeX</font>
<a name="line130">130: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_BINARY_MATLAB</a>` - output additional information that can be used to read the data into MATLAB</font>
<a name="line131">131: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_BASIC</a>` - views the vector with a simple 1d plot</font>
<a name="line132">132: </a><font color="#B22222">. `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_LG</a>` - views the vector with a line graph</font>
<a name="line133">133: </a><font color="#B22222">- `<a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_CONTOUR</a>` - views the vector with a contour plot</font>
<a name="line135">135: </a><font color="#B22222"> Level: beginner</font>
<a name="line137">137: </a><font color="#B22222"> Note:</font>
<a name="line138">138: </a><font color="#B22222"> A variety of specialized formats also exist</font>
<a name="line140">140: </a><font color="#B22222">.seealso: [](sec_viewers), `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`, `<a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>`, `<a href="../manualpages/Viewer/PetscViewerPushFormat.html">PetscViewerPushFormat</a>()`, `<a href="../manualpages/Viewer/PetscViewerPopFormat.html">PetscViewerPopFormat</a>()`</font>
<a name="line141">141: </a><font color="#B22222">E*/</font>
<a name="line142">142: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line143">143: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DEFAULT</a>,
<a name="line144">144: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_MATLAB</a>,
<a name="line145">145: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_MATHEMATICA</a>,
<a name="line146">146: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_IMPL</a>,
<a name="line147">147: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INFO</a>,
<a name="line148">148: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INFO_DETAIL</a>,
<a name="line149">149: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_COMMON</a>,
<a name="line150">150: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_SYMMODU</a>,
<a name="line151">151: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_INDEX</a>,
<a name="line152">152: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_DENSE</a>,
<a name="line153">153: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_MATRIXMARKET</a>,
<a name="line154">154: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_PCICE</a>,
<a name="line155">155: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_PYTHON</a>,
<a name="line156">156: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_FACTOR_INFO</a>,
<a name="line157">157: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_LATEX</a>,
<a name="line158">158: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_XML</a>,
<a name="line159">159: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_FLAMEGRAPH</a>,
<a name="line160">160: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_GLVIS</a>,
<a name="line161">161: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ASCII_CSV</a>,
<a name="line162">162: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_BASIC</a>,
<a name="line163">163: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_LG</a>,
<a name="line164">164: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_LG_XRANGE</a>,
<a name="line165">165: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_CONTOUR</a>,
<a name="line166">166: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_DRAW_PORTS</a>,
<a name="line167">167: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_VTK_VTS</a>,
<a name="line168">168: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_VTK_VTR</a>,
<a name="line169">169: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_VTK_VTU</a>,
<a name="line170">170: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_BINARY_MATLAB</a>,
<a name="line171">171: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_NATIVE</a>,
<a name="line172">172: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_HDF5_PETSC</a>,
<a name="line173">173: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_HDF5_VIZ</a>,
<a name="line174">174: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_HDF5_XDMF</a>,
<a name="line175">175: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_HDF5_MAT</a>,
<a name="line176">176: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_NOFORMAT</a>,
<a name="line177">177: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_LOAD_BALANCE</a>,
<a name="line178">178: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_FAILED</a>,
<a name="line179">179: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PETSC_VIEWER_ALL</a>
<a name="line180">180: </a>} <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>;
<a name="line181">181: </a>PETSC_EXTERN const char *const PetscViewerFormats[];
<a name="line183">183: </a>PETSC_EXTERN PETSC_DEPRECATED_FUNCTION(3, 7, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscViewerPushFormat.html">PetscViewerPushFormat</a>() / <a href="../manualpages/Viewer/PetscViewerPopFormat.html">PetscViewerPopFormat</a>()"</font>, ) <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSetFormat.html">PetscViewerSetFormat</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>);
<a name="line184">184: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPushFormat.html">PetscViewerPushFormat</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>)</font></strong>;
<a name="line185">185: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPopFormat.html">PetscViewerPopFormat</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line186">186: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerGetFormat.html">PetscViewerGetFormat</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *)</font></strong>;
<a name="line187">187: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFlush.html">PetscViewerFlush</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line189">189: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscOptionsPushCreateViewerOff.html">PetscOptionsPushCreateViewerOff</a>(<a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line190">190: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscOptionsPopCreateViewerOff.html">PetscOptionsPopCreateViewerOff</a>(void)</font></strong>;
<a name="line191">191: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscOptionsGetCreateViewerOff.html">PetscOptionsGetCreateViewerOff</a>(<a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line192">192: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscOptionsCreateViewer.html">PetscOptionsCreateViewer</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, PetscOptions, const char[], const char[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line193">193: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscOptionsCreateViewers.html">PetscOptionsCreateViewers</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, PetscOptions, const char[], const char[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line194">194: </a><strong><font color="#228B22">#define <a href="../manualpages/Sys/PetscOptionsViewer.html">PetscOptionsViewer</a>(a, b, c, d, e, f) PetscOptionsViewer_Private(PetscOptionsObject, a, b, c, d, e, f)</font></strong>
<a name="line195">195: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsViewer_Private(PetscOptionItems, const char[], const char[], const char[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line197">197: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscViewerDestroy.html">PetscViewerDestroy</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsRestoreViewer(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *viewer)
<a name="line198">198: </a>{
<a name="line199">199: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscViewerDestroy.html">PetscViewerDestroy</a>(viewer);
<a name="line200">200: </a>}
<a name="line201">201: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscOptionsCreateViewer.html">PetscOptionsCreateViewer</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsGetViewer(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a> comm, PetscOptions op, const char a[], const char b[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *v, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *f, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *fg)
<a name="line202">202: </a>{
<a name="line203">203: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscOptionsCreateViewer.html">PetscOptionsCreateViewer</a>(comm, op, a, b, v, f, fg);
<a name="line204">204: </a>}
<a name="line205">205: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscOptionsCreateViewers.html">PetscOptionsCreateViewers</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsGetViewers(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a> comm, PetscOptions op, const char a[], const char b[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *n, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *v, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> *f, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *fg)
<a name="line206">206: </a>{
<a name="line207">207: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscOptionsCreateViewers.html">PetscOptionsCreateViewers</a>(comm, op, a, b, n, v, f, fg);
<a name="line208">208: </a>}
<a name="line209">209: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscOptionsGetCreateViewerOff.html">PetscOptionsGetCreateViewerOff</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsGetViewerOff(<a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *fg)
<a name="line210">210: </a>{
<a name="line211">211: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscOptionsGetCreateViewerOff.html">PetscOptionsGetCreateViewerOff</a>(fg);
<a name="line212">212: </a>}
<a name="line213">213: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscOptionsPushCreateViewerOff.html">PetscOptionsPushCreateViewerOff</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsPushGetViewerOff(<a href="../manualpages/Sys/PetscBool.html">PetscBool</a> fg)
<a name="line214">214: </a>{
<a name="line215">215: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscOptionsPushCreateViewerOff.html">PetscOptionsPushCreateViewerOff</a>(fg);
<a name="line216">216: </a>}
<a name="line217">217: </a>PETSC_DEPRECATED_FUNCTION(3, 22, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscOptionsPushCreateViewerOff.html">PetscOptionsPushCreateViewerOff</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscOptionsPopGetViewerOff(void)
<a name="line218">218: </a>{
<a name="line219">219: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscOptionsPopCreateViewerOff.html">PetscOptionsPopCreateViewerOff</a>();
<a name="line220">220: </a>}
<a name="line222">222: </a><font color="#4169E1">typedef</font> <font color="#4169E1">struct</font> {
<a name="line223">223: </a> <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> viewer;
<a name="line224">224: </a> <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a> format;
<a name="line225">225: </a> <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> view_interval;
<a name="line226">226: </a> void *data;
<a name="line227">227: </a> <a href="../manualpages/Sys/PetscCtxDestroyFn.html">PetscCtxDestroyFn</a> *data_destroy;
<a name="line228">228: </a>} PetscViewerAndFormat;
<a name="line229">229: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerAndFormatCreate.html">PetscViewerAndFormatCreate</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Viewer/PetscViewerFormat.html">PetscViewerFormat</a>, PetscViewerAndFormat **)</font></strong>;
<a name="line230">230: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerAndFormatDestroy.html">PetscViewerAndFormatDestroy</a>(PetscViewerAndFormat **)</font></strong>;
<a name="line232">232: </a><font color="#B22222">/*</font>
<a name="line233">233: </a><font color="#B22222"> Operations explicit to a particular class of viewers</font>
<a name="line234">234: </a><font color="#B22222">*/</font>
<a name="line236">236: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIGetPointer.html">PetscViewerASCIIGetPointer</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, FILE **)</font></strong>;
<a name="line237">237: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFileGetMode.html">PetscViewerFileGetMode</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a> *)</font></strong>;
<a name="line238">238: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFileSetMode.html">PetscViewerFileSetMode</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a>)</font></strong>;
<a name="line239">239: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerRead.html">PetscViewerRead</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, void *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line240">240: </a><strong><font color="#4169E1"><a name="PetscViewerASCIIPrintf"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIPrintf.html">PetscViewerASCIIPrintf</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], ...)</font></strong> <a href="../manualpages/Sys/PETSC_ATTRIBUTE_FORMAT.html">PETSC_ATTRIBUTE_FORMAT</a>(2, 3);
<a name="line241">241: </a><strong><font color="#4169E1"><a name="PetscViewerASCIISynchronizedPrintf"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIISynchronizedPrintf.html">PetscViewerASCIISynchronizedPrintf</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], ...)</font></strong> <a href="../manualpages/Sys/PETSC_ATTRIBUTE_FORMAT.html">PETSC_ATTRIBUTE_FORMAT</a>(2, 3);
<a name="line242">242: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIPushSynchronized.html">PetscViewerASCIIPushSynchronized</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line243">243: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIPopSynchronized.html">PetscViewerASCIIPopSynchronized</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line244">244: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIPushTab.html">PetscViewerASCIIPushTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line245">245: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIPopTab.html">PetscViewerASCIIPopTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line246">246: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIUseTabs.html">PetscViewerASCIIUseTabs</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line247">247: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIISetTab.html">PetscViewerASCIISetTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line248">248: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIGetTab.html">PetscViewerASCIIGetTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line249">249: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIAddTab.html">PetscViewerASCIIAddTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line250">250: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIISubtractTab.html">PetscViewerASCIISubtractTab</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line251">251: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIRead.html">PetscViewerASCIIRead</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, void *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line252">252: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetDescriptor.html">PetscViewerBinaryGetDescriptor</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, int *)</font></strong>;
<a name="line253">253: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetInfoPointer.html">PetscViewerBinaryGetInfoPointer</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, FILE **)</font></strong>;
<a name="line254">254: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryRead.html">PetscViewerBinaryRead</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, void *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line255">255: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryWrite.html">PetscViewerBinaryWrite</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const void *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line256">256: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryReadAll.html">PetscViewerBinaryReadAll</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, void *, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line257">257: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryWriteAll.html">PetscViewerBinaryWriteAll</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const void *, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscCount.html">PetscCount</a>, <a href="../manualpages/Sys/PetscDataType.html">PetscDataType</a>)</font></strong>;
<a name="line258">258: </a><strong><font color="#4169E1"><a name="PetscViewerStringSPrintf"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerStringSPrintf.html">PetscViewerStringSPrintf</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], ...)</font></strong> <a href="../manualpages/Sys/PETSC_ATTRIBUTE_FORMAT.html">PETSC_ATTRIBUTE_FORMAT</a>(2, 3);
<a name="line259">259: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerStringSetString.html">PetscViewerStringSetString</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, char[], size_t)</font></strong>;
<a name="line260">260: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerStringGetStringRead.html">PetscViewerStringGetStringRead</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *[], size_t *)</font></strong>;
<a name="line261">261: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerStringSetOwnString.html">PetscViewerStringSetOwnString</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line262">262: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawClear.html">PetscViewerDrawClear</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line263">263: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawSetHold.html">PetscViewerDrawSetHold</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line264">264: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawGetHold.html">PetscViewerDrawGetHold</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line265">265: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawSetPause.html">PetscViewerDrawSetPause</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a>)</font></strong>;
<a name="line266">266: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawGetPause.html">PetscViewerDrawGetPause</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line267">267: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerDrawSetInfo(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], const char[], int, int, int, int)</font></strong>;
<a name="line268">268: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerDrawResize(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, int, int)</font></strong>;
<a name="line269">269: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawSetBounds.html">PetscViewerDrawSetBounds</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> *)</font></strong>;
<a name="line270">270: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerDrawGetBounds.html">PetscViewerDrawGetBounds</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, const <a href="../manualpages/Sys/PetscReal.html">PetscReal</a> **)</font></strong>;
<a name="line271">271: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSocketSetConnection.html">PetscViewerSocketSetConnection</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], int)</font></strong>;
<a name="line272">272: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySkipInfo.html">PetscViewerBinarySkipInfo</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line273">273: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySetSkipInfo.html">PetscViewerBinarySetSkipInfo</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line274">274: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetSkipInfo.html">PetscViewerBinaryGetSkipInfo</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line275">275: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySetSkipOptions.html">PetscViewerBinarySetSkipOptions</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line276">276: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetSkipOptions.html">PetscViewerBinaryGetSkipOptions</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line277">277: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinarySetSkipHeader.html">PetscViewerBinarySetSkipHeader</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line278">278: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryGetSkipHeader.html">PetscViewerBinaryGetSkipHeader</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line279">279: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryReadStringArray.html">PetscViewerBinaryReadStringArray</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, char ***)</font></strong>;
<a name="line280">280: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerBinaryWriteStringArray.html">PetscViewerBinaryWriteStringArray</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *const *)</font></strong>;
<a name="line282">282: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFileSetName.html">PetscViewerFileSetName</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[])</font></strong>;
<a name="line283">283: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerFileGetName.html">PetscViewerFileGetName</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *[])</font></strong>;
<a name="line285">285: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUGetPointer.html">PetscViewerVUGetPointer</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, FILE **)</font></strong>;
<a name="line286">286: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUSetVecSeen.html">PetscViewerVUSetVecSeen</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>)</font></strong>;
<a name="line287">287: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUGetVecSeen.html">PetscViewerVUGetVecSeen</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a> *)</font></strong>;
<a name="line288">288: </a><strong><font color="#4169E1"><a name="PetscViewerVUPrintDeferred"></a>PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUPrintDeferred.html">PetscViewerVUPrintDeferred</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], ...)</font></strong> <a href="../manualpages/Sys/PETSC_ATTRIBUTE_FORMAT.html">PETSC_ATTRIBUTE_FORMAT</a>(2, 3);
<a name="line289">289: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUFlushDeferred.html">PetscViewerVUFlushDeferred</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line291">291: </a><font color="#B22222">/*@C</font>
<a name="line292">292: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewerVUSetMode.html">PetscViewerVUSetMode</a> - Sets the mode in which to open the file.</font>
<a name="line294">294: </a><font color="#B22222"> Not Collective</font>
<a name="line296">296: </a><font color="#B22222"> Input Parameters:</font>
<a name="line297">297: </a><font color="#B22222">+ viewer - The `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`</font>
<a name="line298">298: </a><font color="#B22222">- mode - The file mode</font>
<a name="line300">300: </a><font color="#B22222"> Level: deprecated</font>
<a name="line302">302: </a><font color="#B22222"> Note:</font>
<a name="line303">303: </a><font color="#B22222"> Use `<a href="../manualpages/Viewer/PetscViewerFileSetMode.html">PetscViewerFileSetMode</a>()` instead.</font>
<a name="line305">305: </a><font color="#B22222">.seealso: [](sec_viewers), `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`, `<a href="../manualpages/Viewer/PetscViewerFileSetMode.html">PetscViewerFileSetMode</a>()`</font>
<a name="line306">306: </a><font color="#B22222">@*/</font>
<a name="line307">307: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"<a href="../manualpages/Viewer/PetscViewerFileSetMode.html">PetscViewerFileSetMode</a>()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVUSetMode.html">PetscViewerVUSetMode</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> viewer, <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a> mode)
<a name="line308">308: </a>{
<a name="line309">309: </a> <font color="#4169E1">return</font> <a href="../manualpages/Viewer/PetscViewerFileSetMode.html">PetscViewerFileSetMode</a>(viewer, mode);
<a name="line310">310: </a>}
<a name="line312">312: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaInitializePackage.html">PetscViewerMathematicaInitializePackage</a>(void)</font></strong>;
<a name="line313">313: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaFinalizePackage.html">PetscViewerMathematicaFinalizePackage</a>(void)</font></strong>;
<a name="line314">314: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaGetName.html">PetscViewerMathematicaGetName</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char **)</font></strong>;
<a name="line315">315: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaSetName.html">PetscViewerMathematicaSetName</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[])</font></strong>;
<a name="line316">316: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaClearName.html">PetscViewerMathematicaClearName</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line317">317: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMathematicaSkipPackets.html">PetscViewerMathematicaSkipPackets</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, int)</font></strong>;
<a name="line319">319: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerSiloClearName(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line320">320: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerSiloClearMeshName(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line322">322: </a><font color="#4169E1">typedef</font> <font color="#4169E1">enum</font> {
<a name="line323">323: </a> PETSC_VTK_INVALID,
<a name="line324">324: </a> PETSC_VTK_POINT_FIELD,
<a name="line325">325: </a> PETSC_VTK_POINT_VECTOR_FIELD,
<a name="line326">326: </a> PETSC_VTK_CELL_FIELD,
<a name="line327">327: </a> PETSC_VTK_CELL_VECTOR_FIELD
<a name="line328">328: </a>} PetscViewerVTKFieldType;
<a name="line329">329: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVTKAddField.html">PetscViewerVTKAddField</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> (*<a href="../manualpages/Viewer/PetscViewerVTKWriteFunction.html">PetscViewerVTKWriteFunction</a>)(<a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>), <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, PetscViewerVTKFieldType, <a href="../manualpages/Sys/PetscBool.html">PetscBool</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>)</font></strong>;
<a name="line330">330: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVTKGetDM.html">PetscViewerVTKGetDM</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a> *)</font></strong>;
<a name="line331">331: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerVTKOpen.html">PetscViewerVTKOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Sys/PetscFileMode.html">PetscFileMode</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line333">333: </a><font color="#B22222">/*</font>
<a name="line334">334: </a><font color="#B22222"> These are all the default viewers that do not have to be explicitly opened</font>
<a name="line335">335: </a><font color="#B22222">*/</font>
<a name="line336">336: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_.html">PETSC_VIEWER_STDOUT_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line337">337: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIGetStdout.html">PetscViewerASCIIGetStdout</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line338">338: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_.html">PETSC_VIEWER_STDERR_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line339">339: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerASCIIGetStderr.html">PetscViewerASCIIGetStderr</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line340">340: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_.html">PETSC_VIEWER_DRAW_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line341">341: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_.html">PETSC_VIEWER_SOCKET_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line342">342: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_.html">PETSC_VIEWER_BINARY_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line343">343: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_.html">PETSC_VIEWER_MATLAB_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line344">344: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_HDF5_.html">PETSC_VIEWER_HDF5_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line345">345: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_GLVIS_.html">PETSC_VIEWER_GLVIS_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line346">346: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/DMPlex/PETSC_VIEWER_EXODUSII_.html">PETSC_VIEWER_EXODUSII_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line347">347: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_PYTHON_.html">PETSC_VIEWER_PYTHON_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line348">348: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_PYVISTA_.html">PETSC_VIEWER_PYVISTA_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line349">349: </a>PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> PETSC_VIEWER_MATHEMATICA_WORLD_PRIVATE;
<a name="line351">351: </a><font color="#B22222">/*MC</font>
<a name="line352">352: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_SELF.html">PETSC_VIEWER_STDERR_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_.html">PETSC_VIEWER_STDERR_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line354">354: </a><font color="#B22222"> Level: beginner</font>
<a name="line355">355: </a><font color="#B22222">M*/</font>
<a name="line356">356: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_SELF.html">PETSC_VIEWER_STDERR_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_.html">PETSC_VIEWER_STDERR_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line358">358: </a><font color="#B22222">/*MC</font>
<a name="line359">359: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_WORLD.html">PETSC_VIEWER_STDERR_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_.html">PETSC_VIEWER_STDERR_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line361">361: </a><font color="#B22222"> Level: beginner</font>
<a name="line362">362: </a><font color="#B22222">M*/</font>
<a name="line363">363: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_WORLD.html">PETSC_VIEWER_STDERR_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDERR_.html">PETSC_VIEWER_STDERR_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line365">365: </a><font color="#B22222">/*MC</font>
<a name="line366">366: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_WORLD.html">PETSC_VIEWER_STDOUT_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_.html">PETSC_VIEWER_STDOUT_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line368">368: </a><font color="#B22222"> Level: beginner</font>
<a name="line369">369: </a><font color="#B22222">M*/</font>
<a name="line370">370: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_WORLD.html">PETSC_VIEWER_STDOUT_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_.html">PETSC_VIEWER_STDOUT_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line372">372: </a><font color="#B22222">/*MC</font>
<a name="line373">373: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_SELF.html">PETSC_VIEWER_STDOUT_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_.html">PETSC_VIEWER_STDOUT_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line375">375: </a><font color="#B22222"> Level: beginner</font>
<a name="line376">376: </a><font color="#B22222">M*/</font>
<a name="line377">377: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_SELF.html">PETSC_VIEWER_STDOUT_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_STDOUT_.html">PETSC_VIEWER_STDOUT_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line379">379: </a><font color="#B22222">/*MC</font>
<a name="line380">380: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_WORLD.html">PETSC_VIEWER_DRAW_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_.html">PETSC_VIEWER_DRAW_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line382">382: </a><font color="#B22222"> Level: intermediate</font>
<a name="line383">383: </a><font color="#B22222">M*/</font>
<a name="line384">384: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_WORLD.html">PETSC_VIEWER_DRAW_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_.html">PETSC_VIEWER_DRAW_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line386">386: </a><font color="#B22222">/*MC</font>
<a name="line387">387: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_SELF.html">PETSC_VIEWER_DRAW_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_.html">PETSC_VIEWER_DRAW_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line389">389: </a><font color="#B22222"> Level: intermediate</font>
<a name="line390">390: </a><font color="#B22222">M*/</font>
<a name="line391">391: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_SELF.html">PETSC_VIEWER_DRAW_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_DRAW_.html">PETSC_VIEWER_DRAW_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line393">393: </a><font color="#B22222">/*MC</font>
<a name="line394">394: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_WORLD.html">PETSC_VIEWER_SOCKET_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_.html">PETSC_VIEWER_SOCKET_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line396">396: </a><font color="#B22222"> Level: intermediate</font>
<a name="line397">397: </a><font color="#B22222">M*/</font>
<a name="line398">398: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_WORLD.html">PETSC_VIEWER_SOCKET_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_.html">PETSC_VIEWER_SOCKET_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line400">400: </a><font color="#B22222">/*MC</font>
<a name="line401">401: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_SELF.html">PETSC_VIEWER_SOCKET_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_.html">PETSC_VIEWER_SOCKET_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line403">403: </a><font color="#B22222"> Level: intermediate</font>
<a name="line404">404: </a><font color="#B22222">M*/</font>
<a name="line405">405: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_SELF.html">PETSC_VIEWER_SOCKET_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_SOCKET_.html">PETSC_VIEWER_SOCKET_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line407">407: </a><font color="#B22222">/*MC</font>
<a name="line408">408: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_WORLD.html">PETSC_VIEWER_BINARY_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_.html">PETSC_VIEWER_BINARY_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line410">410: </a><font color="#B22222"> Level: intermediate</font>
<a name="line411">411: </a><font color="#B22222">M*/</font>
<a name="line412">412: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_WORLD.html">PETSC_VIEWER_BINARY_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_.html">PETSC_VIEWER_BINARY_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line414">414: </a><font color="#B22222">/*MC</font>
<a name="line415">415: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_SELF.html">PETSC_VIEWER_BINARY_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_.html">PETSC_VIEWER_BINARY_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line417">417: </a><font color="#B22222"> Level: intermediate</font>
<a name="line418">418: </a><font color="#B22222">M*/</font>
<a name="line419">419: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_SELF.html">PETSC_VIEWER_BINARY_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_BINARY_.html">PETSC_VIEWER_BINARY_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line421">421: </a><font color="#B22222">/*MC</font>
<a name="line422">422: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_WORLD.html">PETSC_VIEWER_MATLAB_WORLD</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_.html">PETSC_VIEWER_MATLAB_</a>`(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font>
<a name="line424">424: </a><font color="#B22222"> Level: intermediate</font>
<a name="line425">425: </a><font color="#B22222">M*/</font>
<a name="line426">426: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_WORLD.html">PETSC_VIEWER_MATLAB_WORLD</a> <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_.html">PETSC_VIEWER_MATLAB_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line428">428: </a><font color="#B22222">/*MC</font>
<a name="line429">429: </a><font color="#B22222"> <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_SELF.html">PETSC_VIEWER_MATLAB_SELF</a> - same as `<a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_.html">PETSC_VIEWER_MATLAB_</a>`(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font>
<a name="line431">431: </a><font color="#B22222"> Level: intermediate</font>
<a name="line432">432: </a><font color="#B22222">M*/</font>
<a name="line433">433: </a><strong><font color="#228B22">#define <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_SELF.html">PETSC_VIEWER_MATLAB_SELF</a> <a href="../manualpages/Viewer/PETSC_VIEWER_MATLAB_.html">PETSC_VIEWER_MATLAB_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line435">435: </a><strong><font color="#228B22">#define PETSC_VIEWER_MATHEMATICA_WORLD (PetscViewerInitializeMathematicaWorld_Private(), PETSC_VIEWER_MATHEMATICA_WORLD_PRIVATE)</font></strong>
<a name="line437">437: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlStart(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line438">438: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlStepMain(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>)</font></strong>;
<a name="line439">439: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlEndMain(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line440">440: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlStepWorker(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscMPIInt.html">PetscMPIInt</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line441">441: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlEndWorker(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *)</font></strong>;
<a name="line442">442: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"PetscViewerFlowControlStepMain()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlStepMaster(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> viewer, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> i, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *mcnt, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> cnt)
<a name="line443">443: </a>{
<a name="line444">444: </a> <font color="#4169E1">return</font> PetscViewerFlowControlStepMain(viewer, i, mcnt, cnt);
<a name="line445">445: </a>}
<a name="line446">446: </a>PETSC_DEPRECATED_FUNCTION(3, 15, 0, <font color="#666666">"PetscViewerFlowControlEndMain()"</font>, ) static inline <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerFlowControlEndMaster(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> viewer, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a> *mcnt)
<a name="line447">447: </a>{
<a name="line448">448: </a> <font color="#4169E1">return</font> PetscViewerFlowControlEndMain(viewer, mcnt);
<a name="line449">449: </a>}
<a name="line451">451: </a><font color="#B22222">/*</font>
<a name="line452">452: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> writes to MATLAB .mat file</font>
<a name="line453">453: </a><font color="#B22222">*/</font>
<a name="line454">454: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMatlabPutArray.html">PetscViewerMatlabPutArray</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, int, int, const <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *, const char *)</font></strong>;
<a name="line455">455: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMatlabGetArray.html">PetscViewerMatlabGetArray</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, int, int, <a href="../manualpages/Sys/PetscScalar.html">PetscScalar</a> *, const char *)</font></strong>;
<a name="line456">456: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> PetscViewerMatlabPutVariable(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *, void *)</font></strong>;
<a name="line458">458: </a><font color="#A020F0">#if defined(PETSC_HAVE_SAWS)</font>
<a name="line459">459: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscObjectViewSAWs.html">PetscObjectViewSAWs</a>(<a href="../manualpages/Sys/PetscObject.html">PetscObject</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>)</font></strong>;
<a name="line460">460: </a><font color="#A020F0">#endif</font>
<a name="line462">462: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPythonSetType.html">PetscViewerPythonSetType</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[])</font></strong>;
<a name="line463">463: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPythonGetType.html">PetscViewerPythonGetType</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char *[])</font></strong>;
<a name="line464">464: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPythonCreate.html">PetscViewerPythonCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, const char[], <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line465">465: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerPythonViewObject.html">PetscViewerPythonViewObject</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, <a href="../manualpages/Sys/PetscObject.html">PetscObject</a>)</font></strong>;
<a name="line467">467: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerMonitorLGSetUp.html">PetscViewerMonitorLGSetUp</a>(<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>, const char[], const char[], const char[], <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, const char *[], int, int, int, int)</font></strong>;
<a name="line469">469: </a><font color="#B22222">/*S</font>
<a name="line470">470: </a><font color="#B22222"> <a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a> - Abstract collection of `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`s. It is stored as an expandable array of viewers.</font>
<a name="line472">472: </a><font color="#B22222"> Level: intermediate</font>
<a name="line474">474: </a><font color="#B22222">.seealso: [](sec_viewers), `<a href="../manualpages/Viewer/PetscViewerCreate.html">PetscViewerCreate</a>()`, `<a href="../manualpages/Viewer/PetscViewerSetType.html">PetscViewerSetType</a>()`, `<a href="../manualpages/Viewer/PetscViewerType.html">PetscViewerType</a>`, `<a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a>`, `<a href="../manualpages/Viewer/PetscViewersCreate.html">PetscViewersCreate</a>()`,</font>
<a name="line475">475: </a><font color="#B22222"> `<a href="../manualpages/Viewer/PetscViewersGetViewer.html">PetscViewersGetViewer</a>()`</font>
<a name="line476">476: </a><font color="#B22222">S*/</font>
<a name="line477">477: </a><font color="#4169E1">typedef struct _n_PetscViewers *<a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a>;</font>
<a name="line478">478: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewersCreate.html">PetscViewersCreate</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a> *)</font></strong>;
<a name="line479">479: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewersDestroy.html">PetscViewersDestroy</a>(<a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a> *)</font></strong>;
<a name="line480">480: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewersGetViewer.html">PetscViewersGetViewer</a>(<a href="../manualpages/Viewer/PetscViewers.html">PetscViewers</a>, <a href="../manualpages/Sys/PetscInt.html">PetscInt</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
</pre>
</body>
</html>
|