From: bangerth Date: Fri, 22 Aug 2008 19:36:25 +0000 (+0000) Subject: Add a Traits class to the Trilinos sparse matrix class. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dcff63d378cb7b289ca24c42cf899d699c9db58;p=dealii-svn.git Add a Traits class to the Trilinos sparse matrix class. git-svn-id: https://svn.dealii.org/trunk@16655 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/trilinos_sparse_matrix.h b/deal.II/lac/include/lac/trilinos_sparse_matrix.h index d1fbe3a1eb..54b078c972 100755 --- a/deal.II/lac/include/lac/trilinos_sparse_matrix.h +++ b/deal.II/lac/include/lac/trilinos_sparse_matrix.h @@ -294,6 +294,27 @@ namespace TrilinosWrappers class SparseMatrix : public Subscriptor { public: + /** + * A structure that describes some of + * the traits of this class in terms of + * its run-time behavior. Some other + * classes (such as the block matrix + * classes) that take one or other of + * the matrix classes as its template + * parameters can tune their behavior + * based on the variables in this + * class. + */ + struct Traits + { + /** + * It is safe to elide additions of + * zeros to individual elements of + * this matrix. + */ + static const bool zero_addition_can_be_elided = true; + }; + /** * Declare a typedef for the iterator * class.