PETScWrappers::VectorBase::LastAction Struct Reference
List of all members.
Detailed Description
PETSc doesn't allow to mix additions to matrix entries and overwriting them (to make synchronisation of parallel computations simpler). Since the interface of the existing classes don't support the notion of not interleaving things, we have to emulate this ourselves. The way we do it is to, for each access operation, store whether it is an insertion or an addition. If the previous one was of different type, then we first have to flush the PETSc buffers; otherwise, we can simply go on.
The following structure and variable declare and store the previous state.
Member Enumeration Documentation
The documentation for this struct was generated from the following file: