Package petsc4py :: Module PETSc :: Class DMComposite

[hide private]
[frames] | no frames]

# Class DMComposite

Nested Classes | [hide private]

Inherited from `DM`: `BoundaryType`, `Type`

Instance Methods | [hide private]

a new object with type S, a subtype of T

__new__(S, ...) |

addDM(self, DM dm, *args) Add DM to composite |

create(self, comm=None) |

gather(self, Vec gvec, imode, lvecs) Gather split local vectors into coupled global vector |

getAccess(self, Vec gvec, locs=None) Get access to specified parts of global vector. |

getEntries(self) Get tuple of sub-DMs contained in the DMComposite |

getGlobalISs(self) |

getLGMaps(self) |

getLocalISs(self) |

getNumber(self) Get number of sub-DMs contained in the DMComposite |

getNumberDM(self) Get number of sub-DMs contained in the DMComposite |

scatter(self, Vec gvec, lvecs) Scatter coupled global vector into split local vectors |

Inherited from `DM`: `adaptLabel`, `adaptMetric`, `addCoarsenHook`, `addField`, `clearDS`, `clearLabelStratum`, `clearLabelValue`, `clone`, `coarsen`, `coarsenHierarchy`, `convert`, `copyDS`, `copyDisc`, `copyFields`, `createDS`, `createDefaultSF`, `createFieldDecomposition`, `createGlobalVec`, `createGlobalVector`, `createInjection`, `createInterpolation`, `createLabel`, `createLocalVec`, `createLocalVector`, `createMat`, `createMatrix`, `createRestriction`, `createSectionSF`, `destroy`, `getAppCtx`, `getBasicAdjacency`, `getBlockSize`, `getBoundingBox`, `getCoarsenLevel`, `getCoordinateDM`, `getCoordinateDim`, `getCoordinateSection`, `getCoordinates`, `getCoordinatesLocal`, `getDS`, `getDefaultGlobalSection`, `getDefaultSF`, `getDefaultSection`, `getDimension`, `getField`, `getFieldAdjacency`, `getGlobalSection`, `getGlobalVec`, `getLGMap`, `getLabel`, `getLabelIdIS`, `getLabelName`, `getLabelOutput`, `getLabelSize`, `getLabelValue`, `getLocalBoundingBox`, `getLocalVec`, `getMatrix`, `getNumFields`, `getNumLabels`, `getPointSF`, `getRefineLevel`, `getSection`, `getSectionSF`, `getStratumIS`, `getStratumSize`, `getType`, `globalToLocal`, `hasLabel`, `load`, `localToGlobal`, `localToLocal`, `localizeCoordinates`, `refine`, `refineHierarchy`, `removeLabel`, `restoreGlobalVec`, `restoreLocalVec`, `setAppCtx`, `setBasicAdjacency`, `setCoordinateDim`, `setCoordinates`, `setCoordinatesLocal`, `setDefaultGlobalSection`, `setDefaultSF`, `setDefaultSection`, `setDimension`, `setField`, `setFieldAdjacency`, `setFromOptions`, `setGlobalSection`, `setKSPComputeOperators`, `setLabelOutput`, `setLabelValue`, `setMatType`, `setNumFields`, `setOptionsPrefix`, `setPointSF`, `setRefineLevel`, `setSNESFunction`, `setSNESJacobian`, `setSection`, `setSectionSF`, `setType`, `setUp`, `setVecType`, `view`, `viewFromOptions`

Inherited from `Object`: `__copy__`, `__deepcopy__`, `__eq__`, `__ge__`, `__gt__`, `__le__`, `__lt__`, `__ne__`, `__nonzero__`, `compose`, `decRef`, `getAttr`, `getClassId`, `getClassName`, `getComm`, `getDict`, `getName`, `getOptionsPrefix`, `getRefCount`, `getTabLevel`, `incRef`, `incrementTabLevel`, `query`, `setAttr`, `setName`, `setTabLevel`, `stateIncrease`

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

Inherited from `DM`: `appctx`, `ds` Inherited from `Object`: `classid`, `comm`, `fortran`, `handle`, `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__

### create(self, comm=None)

Overrides: DM.create

### getAccess(self, Vec gvec, locs=None)

Get access to specified parts of global vector.

> Use via 'with' context manager (PEP 343).