]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a Traits class to the Trilinos sparse matrix class.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Aug 2008 19:36:25 +0000 (19:36 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 22 Aug 2008 19:36:25 +0000 (19:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@16655 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/trilinos_sparse_matrix.h

index d1fbe3a1ebcd3844214c1990dbe33f0a210308c8..54b078c972315ba21ce1869490deebfd53c7862b 100755 (executable)
@@ -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.

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.