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
|
<center><a href="https://gitlab.com/petsc/petsc/-/blob/b522cb8c110832b61be366220eb7433134308289/include/petscviewersaws.h">Actual source code: petscviewersaws.h</a></center><br>
<html>
<head>
<title></title>
<meta name="generator" content="c2html 0.9.6">
<meta name="date" content="2025-10-29T18:33:44+00:00">
</head>
<body bgcolor="#FFFFFF">
<pre width=80>
<a name="line1"> 1: </a><font color="#A020F0">#pragma once</font>
<a name="line3"> 3: </a>#include <A href="../include/petscviewer.h.html"><petscviewer.h></A>
<a name="line4"> 4: </a><font color="#A020F0">#include <SAWs.h></font>
<a name="line6"> 6: </a><font color="#B22222">/* MANSEC = Viewer */</font>
<a name="line8"> 8: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Sys/PetscErrorCode.html">PetscErrorCode</a> <a href="../manualpages/Viewer/PetscViewerSAWsOpen.html">PetscViewerSAWsOpen</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>, <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> *)</font></strong>;
<a name="line9"> 9: </a><strong><font color="#4169E1">PETSC_EXTERN <a href="../manualpages/Viewer/PetscViewer.html">PetscViewer</a> <a href="../manualpages/Viewer/PETSC_VIEWER_SAWS_.html">PETSC_VIEWER_SAWS_</a>(<a href="../manualpages/Sys/MPI_Comm.html">MPI_Comm</a>)</font></strong>;
<a name="line10"> 10: </a><strong><font color="#228B22">#define PETSC_VIEWER_SAWS_WORLD <a href="../manualpages/Viewer/PETSC_VIEWER_SAWS_.html">PETSC_VIEWER_SAWS_</a>(<a href="../manualpages/Sys/PETSC_COMM_WORLD.html">PETSC_COMM_WORLD</a>)</font></strong>
<a name="line11"> 11: </a><strong><font color="#228B22">#define PETSC_VIEWER_SAWS_SELF <a href="../manualpages/Viewer/PETSC_VIEWER_SAWS_.html">PETSC_VIEWER_SAWS_</a>(<a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>)</font></strong>
<a name="line13"> 13: </a><strong><font color="#228B22">#define PetscCallSAWs(func, args) \</font></strong>
<a name="line14"> 14: </a><strong><font color="#228B22"> do { \</font></strong>
<a name="line15"> 15: </a><strong><font color="#228B22"> int _ierr; \</font></strong>
<a name="line16"> 16: </a><strong><font color="#228B22"> <a href="../manualpages/Sys/PetscStackPushExternal.html">PetscStackPushExternal</a>(#func); \</font></strong>
<a name="line17"> 17: </a><strong><font color="#228B22"> _ierr = func args; \</font></strong>
<a name="line18"> 18: </a><strong><font color="#228B22"> <a href="../manualpages/Sys/PetscStackPop.html">PetscStackPop</a>; \</font></strong>
<a name="line19"> 19: </a><strong><font color="#228B22"> <a href="../manualpages/Sys/PetscCheck.html">PetscCheck</a>(!_ierr, <a href="../manualpages/Sys/PETSC_COMM_SELF.html">PETSC_COMM_SELF</a>, <a href="../manualpages/Sys/PetscErrorCode.html">PETSC_ERR_LIB</a>, </font><font color="#666666">"Error in %s() %d"</font><font color="#228B22">, #func, _ierr); \</font></strong>
<a name="line20"> 20: </a><strong><font color="#228B22"> } while (0)</font></strong>
</pre>
</body>
</html>
|