petsc4py.PETSc.TAOTerm#
- class petsc4py.PETSc.TAOTerm#
Bases:
ObjectTAO Term.
Enumerations
TAO Term Types.
Methods Summary
create([comm])Create a TAO Term.
destroy()Destroy the term object.
getType()Return the type of the term.
Configure the term from the options database.
Set the solution vector template.
setType(term_type)Set the type of the term.
setUp()Set up the internal data structures for using the term.
view([viewer])View the term object.
Methods Documentation
- create(comm=None)#
Create a TAO Term.
Collective.
- Parameters:
comm – MPI communicator, defaults to
Sys.getDefaultComm.- Return type:
See also
- destroy()#
Destroy the term object.
Collective.
See also
Source code at petsc4py/PETSc/TAO.pyx:2537
- Return type:
- getType()#
Return the type of the term.
Not collective.
See also
Source code at petsc4py/PETSc/TAO.pyx:2590
- Return type:
- setFromOptions()#
Configure the term from the options database.
Collective.
Source code at petsc4py/PETSc/TAO.pyx:2604
- Return type:
- setSolutionTemplate(x)#
Set the solution vector template.
Collective.
See also
- setType(term_type)#
Set the type of the term.
Logically collective.
See also
- setUp()#
Set up the internal data structures for using the term.
Collective.
See also
Source code at petsc4py/PETSc/TAO.pyx:2616
- Return type: