petsc4py.PETSc.Quad#
- class petsc4py.PETSc.Quad#
Bases:
Object
Quadrature rule for integration.
Methods Summary
create
([comm])Create a
Quad
object.destroy
()Destroy the
Quad
object.Create a deep copy of the
Quad
object.getData
()Return the data defining the
Quad
.Return the number of components for functions to be integrated.
getOrder
()Return the order of the method in the
Quad
.setNumComponents
(nc)Return the number of components for functions to be integrated.
setOrder
(order)Set the order of the method in the
Quad
.view
([viewer])View a
Quad
object.Methods Documentation
- create(comm=None)#
Create a
Quad
object.Collective.
- Parameters:
comm (Comm | None) – MPI communicator, defaults to
Sys.getDefaultComm
.- Return type:
See also
- destroy()#
Destroy the
Quad
object.Collective.
See also
Source code at petsc4py/PETSc/DT.pyx:63
- Return type:
- duplicate()#
Create a deep copy of the
Quad
object.Collective.
See also
Source code at petsc4py/PETSc/DT.pyx:49
- Return type:
- getNumComponents()#
Return the number of components for functions to be integrated.
Not collective.
Source code at petsc4py/PETSc/DT.pyx:104
- Return type:
- getOrder()#
Return the order of the method in the
Quad
.Not collective.
See also
Source code at petsc4py/PETSc/DT.pyx:136
- Return type:
- setNumComponents(nc)#
Return the number of components for functions to be integrated.
Not collective.
- setOrder(order)#
Set the order of the method in the
Quad
.Not collective.
- Parameters:
order (int) – The order of the quadrature, i.e. the highest degree polynomial that is exactly integrated.
- Return type:
See also