![]() |
Reference documentation for deal.II version 8.1.0
|
#include <petsc_matrix_base.h>
Public Types | |
enum | Values { none, insert, add } |
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.
Definition at line 1256 of file petsc_matrix_base.h.