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
petsc.PetscQuadratureCreate
- destroy()¶
Destroy the
Quadobject.Collective.
See also
petsc.PetscQuadratureDestroySource code at petsc4py/PETSc/DT.pyx:63
- Return type:
- duplicate()¶
Create a deep copy of the
Quadobject.Collective.
See also
petsc.PetscQuadratureDuplicateSource code at petsc4py/PETSc/DT.pyx:49
- Return type:
- getData()¶
Return the data defining the
Quad.Not collective.
- Returns:
- Return type:
See also
petsc.PetscQuadratureGetData
- getNumComponents()¶
Return the number of components for functions to be integrated.
Not collective.
See also
setNumComponents,petsc.PetscQuadratureGetNumComponentsSource code at petsc4py/PETSc/DT.pyx:104
- Return type:
- getOrder()¶
Return the order of the method in the
Quad.Not collective.
See also
setOrder,petsc.PetscQuadratureGetOrderSource code at petsc4py/PETSc/DT.pyx:136
- Return type:
- setNumComponents(nc)¶
Return the number of components for functions to be integrated.
Not collective.
See also
getNumComponents,petsc.PetscQuadratureSetNumComponents