]> https://gitweb.dealii.org/ - dealii.git/commit
Wrap multiple versions of PETSc's MatDestroy.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 9 Jul 2016 15:09:22 +0000 (11:09 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Tue, 12 Jul 2016 00:08:58 +0000 (20:08 -0400)
commitf6b0d34e127eddddd8e095b2c3268ae7e8980dbe
tree91316bf2ea588b12d99eace4f9c6f96a94f0bcc9
parenta44caef748f6f1902a42715f467b96ae33cec79d
Wrap multiple versions of PETSc's MatDestroy.

This commit puts the version checks of PETSc, which dictate the correct
usage of  MatDestroy, all in one place.

The wrapped version does not throw exceptions, so this fixes a
problem (throwing exceptions in a destructor if PETSc fails) with some
of the current wrapper classes.
include/deal.II/lac/petsc_compatibility.h
source/lac/petsc_full_matrix.cc
source/lac/petsc_matrix_base.cc
source/lac/petsc_matrix_free.cc
source/lac/petsc_parallel_sparse_matrix.cc
source/lac/petsc_sparse_matrix.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.