File: petscviewerpython_protocol.py

package info (click to toggle)
petsc4py 3.23.1-1exp2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,448 kB
  • sloc: python: 12,503; ansic: 1,697; makefile: 343; f90: 313; sh: 14
file content (27 lines) | stat: -rw-r--r-- 699 bytes parent folder | download
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
from petsc4py.PETSc import Object
from petsc4py.PETSc import Viewer


# A template class with the Python methods supported by PETSCVIEWERPYTHON


class PetscViewerPythonProtocol:
    def viewObject(self, viewer: Viewer, obj: Object) -> None:
        """View a generic object."""
        ...

    def setUp(self, viewer: Viewer) -> None:
        """Setup the viewer."""
        ...

    def setFromOptions(self, viewer: Viewer) -> None:
        """Process command line for customization."""
        ...

    def flush(self, viewer: Viewer) -> None:
        """Flush the viewer."""
        ...

    def view(self, viewer: Viewer, outviewer: Viewer) -> None:
        """View the viewer."""
        ...