petsc4py.PETSc.Quad#
- class petsc4py.PETSc.Quad#
Bases:
ObjectQuadrature rule for integration.
Methods Summary
create([comm])Create a
Quadobject.destroy()Destroy the
Quadobject.Create a deep copy of the
Quadobject.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
Quadobject.Methods Documentation
- create(comm=None)#
Create a
Quadobject.Collective.
- Parameters:
comm (Comm | None) – MPI communicator, defaults to
Sys.getDefaultComm.- Return type:
See also
- destroy()#
Destroy the
Quadobject.Collective.
See also
Source code at petsc4py/PETSc/DT.pyx:63
- Return type:
- duplicate()#
Create a deep copy of the
Quadobject.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