Package petsc4py :: Module PETSc :: Class SNES
[hide private]
[frames] | no frames]

Class SNES


Nested Classes [hide private]
  ConvergedReason
  Type
Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(S, ...)
 
callConvergenceTest(self, its, xnorm, ynorm, fnorm)
 
callMonitor(self, its, rnorm)
 
cancelMonitor(self)
 
computeFunction(self, Vec x, Vec f)
 
computeJacobian(self, Vec x, Mat J, Mat P=None)
 
create(self, comm=None)
 
createPython(self, context=None, comm=None)
 
destroy(self)
 
getAppCtx(self)
 
getConvergedReason(self)
 
getConvergenceHistory(self)
 
getConvergenceTest(self)
 
getFunction(self)
 
getFunctionEvaluations(self)
 
getFunctionNorm(self)
 
getIterationNumber(self)
 
getJacobian(self)
 
getKSP(self)
 
getLinearSolveFailures(self)
 
getLinearSolveIterations(self)
 
getMaxFunctionEvaluations(self)
 
getMaxLinearSolveFailures(self)
 
getMaxNonlinearStepFailures(self)
 
getMonitor(self)
 
getNonlinearStepFailures(self)
 
getOptionsPrefix(self)
 
getParamsEW(self)
 
getPythonContext(self)
 
getRhs(self)
 
getSolution(self)
 
getSolutionUpdate(self)
 
getTolerances(self)
 
getType(self)
 
getUpdate(self)
 
getUseEW(self)
 
getUseFD(self)
 
getUseMF(self)
 
logConvergenceHistory(self, its, norm, linear_its=0)
 
setAppCtx(self, appctx)
 
setConvergedReason(self, reason)
 
setConvergenceHistory(self, length=None, reset=False)
 
setConvergenceTest(self, converged, *args, **kargs)
 
setFromOptions(self)
 
setFunction(self, function, Vec f, *args, **kargs)
 
setFunctionNorm(self, norm)
 
setIterationNumber(self, its)
 
setJacobian(self, jacobian, Mat J, Mat P=None, *args, **kargs)
 
setKSP(self, KSP ksp)
 
setMaxFunctionEvaluations(self, max_funcs)
 
setMaxLinearSolveFailures(self, max_fails)
 
setMaxNonlinearStepFailures(self, max_fails)
 
setMonitor(self, monitor, *args, **kargs)
 
setOptionsPrefix(self, prefix)
 
setParamsEW(self, version=None, rtol_0=None, rtol_max=None, gamma=None, alpha=None, alpha2=None, threshold=None)
 
setPythonContext(self, context)
 
setPythonType(self, py_type)
 
setTolerances(self, rtol=None, atol=None, stol=None, max_it=None)
 
setType(self, snes_type)
 
setUp(self)
 
setUpdate(self, update, *args, **kargs)
 
setUseEW(self, flag, *targs, **kargs)
 
setUseFD(self, flag)
 
setUseMF(self, flag)
 
solve(self, b, Vec x)
 
view(self, Viewer viewer=None)

Inherited from Object: __eq__, __ge__, __gt__, __le__, __lt__, __ne__, __nonzero__, compose, decRef, getAttr, getClassName, getComm, getCookie, getDict, getName, getRefCount, incRef, query, setAttr, setName

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  appctx
  atol
  converged
  diverged
  history
  iterating
  its
  ksp
  max_funcs
  max_it
  norm
  reason
  rtol
  stol
  use_ew
  use_fd
  use_mf
  vec_rhs
  vec_sol
  vec_upd

Inherited from Object: comm, cookie, klass, name, prefix, refcount, type

Inherited from object: __class__

Method Details [hide private]

__new__(S, ...)

 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

destroy(self)

 
Overrides: Object.destroy

getOptionsPrefix(self)

 
Overrides: Object.getOptionsPrefix

getType(self)

 
Overrides: Object.getType

setFromOptions(self)

 
Overrides: Object.setFromOptions

setOptionsPrefix(self, prefix)

 
Overrides: Object.setOptionsPrefix

view(self, Viewer viewer=None)

 
Overrides: Object.view