petsc4py.PETSc.Object#
- class petsc4py.PETSc.Object#
Bases:
object
Base class wrapping a PETSc object.
See also
Methods Summary
appendOptionsPrefix
(prefix)Append to the prefix used for searching for options in the database.
compose
(name, obj)Associate a PETSc object using a key string.
decRef
()Decrement the object reference count.
destroy
()Destroy the object.
Clear all the option handlers.
getAttr
(name)Return the attribute associated with a given name.
Return the class identifier of the object.
Return the class name of the object.
getComm
()Return the communicator of the object.
getDict
()Return the dictionary of attributes.
getId
()Return the unique identifier of the object.
getName
()Return the name of the object.
Return the prefix used for searching for options in the database.
Return the reference count of the object.
Return the PETSc object tab level.
getType
()Return the object type name.
incRef
()Increment the object reference count.
incrementTabLevel
(tab[, parent])Increment the PETSc object tab level.
query
(name)Query for the PETSc object associated with a key string.
setAttr
(name, attr)Set an the attribute associated with a given name.
Configure the object from the options database.
setName
(name)Associate a name to the object.
setOptionsHandler
(handler)Set the callback for processing extra options.
setOptionsPrefix
(prefix)Set the prefix used for searching for options in the database.
setTabLevel
(level)Set the PETSc object tab level.
stateGet
()Return the PETSc object state.
Increment the PETSc object state.
stateSet
(state)Set the PETSc object state.
view
([viewer])Display the object.
viewFromOptions
(name[, objpre])View the object via command line options.
Attributes Summary
The class identifier.
The object communicator.
Fortran handle.
Handle for ctypes support.
The object identifier.
The class name.
The object name.
Options prefix.
Reference count.
Object type.
Methods Documentation
- appendOptionsPrefix(prefix)#
Append to the prefix used for searching for options in the database.
Logically collective.
- compose(name, obj)#
Associate a PETSc object using a key string.
Logically collective.
- Parameters:
- Return type:
See also
- decRef()#
Decrement the object reference count.
Logically collective.
See also
Source code at petsc4py/PETSc/Object.pyx:384
- Return type:
- destroy()#
Destroy the object.
Collective.
See also
Source code at petsc4py/PETSc/Object.pyx:81
- Return type:
- destroyOptionsHandlers()#
Clear all the option handlers.
Collective.
Source code at petsc4py/PETSc/Object.pyx:208
- Return type:
- getAttr(name)#
Return the attribute associated with a given name.
Not collective.
- getClassId()#
Return the class identifier of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:265
- Return type:
- getClassName()#
Return the class name of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:279
- Return type:
- getComm()#
Return the communicator of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:223
- Return type:
- getDict()#
Return the dictionary of attributes.
Not collective.
Source code at petsc4py/PETSc/Object.pyx:431
- Return type:
- getId()#
Return the unique identifier of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:308
- Return type:
- getName()#
Return the name of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:237
- Return type:
- getOptionsPrefix()#
Return the prefix used for searching for options in the database.
Not collective.
Source code at petsc4py/PETSc/Object.pyx:124
- Return type:
- getRefCount()#
Return the reference count of the object.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:293
- Return type:
- getTabLevel()#
Return the PETSc object tab level.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:513
- Return type:
- getType()#
Return the object type name.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:94
- Return type:
- incRef()#
Increment the object reference count.
Logically collective.
See also
Source code at petsc4py/PETSc/Object.pyx:367
- Return type:
- incrementTabLevel(tab, parent=None)#
Increment the PETSc object tab level.
Logically collective.
See also
- query(name)#
Query for the PETSc object associated with a key string.
Not collective.
See also
- setAttr(name, attr)#
Set an the attribute associated with a given name.
Not collective.
- setFromOptions()#
Configure the object from the options database.
Collective.
Source code at petsc4py/PETSc/Object.pyx:152
- Return type:
- setName(name)#
Associate a name to the object.
Not collective.
See also
- setOptionsHandler(handler)#
Set the callback for processing extra options.
Logically collective.
- Parameters:
handler (PetscOptionsHandlerFunction | None) – The callback function, called at the end of
setFromOptions
.- Return type:
- setOptionsPrefix(prefix)#
Set the prefix used for searching for options in the database.
Logically collective.
- setTabLevel(level)#
Set the PETSc object tab level.
Logically collective.
See also
- stateGet()#
Return the PETSc object state.
Not collective.
See also
Source code at petsc4py/PETSc/Object.pyx:457
- Return type:
- stateIncrease()#
Increment the PETSc object state.
Logically collective.
See also
Source code at petsc4py/PETSc/Object.pyx:445
- Return type:
- stateSet(state)#
Set the PETSc object state.
Logically collective.
See also
- view(viewer=None)#
Display the object.
Collective.
See also
- viewFromOptions(name, objpre=None)#
View the object via command line options.
Collective.
- Parameters:
- Return type:
Attributes Documentation
- classid#
The class identifier.
- comm#
The object communicator.
- fortran#
Fortran handle.
- handle#
Handle for ctypes support.
- id#
The object identifier.
- klass#
The class name.
- name#
The object name.
- prefix#
Options prefix.
- refcount#
Reference count.
- type#
Object type.