]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add possibility to get sparsity pattern out of a dSMatrix and make the ConstraintMatr...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 17 Mar 1998 12:42:28 +0000 (12:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 17 Mar 1998 12:42:28 +0000 (12:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@71 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/dsmatrix.h
deal.II/lac/source/dsmatrix.cc

index 303c41cd5c6bbd2d00d6873e41c78394ed958982..1c880274af0d46f963c7fdad93ffd89d8c2c3417 100644 (file)
@@ -174,6 +174,8 @@ class dSMatrix
                                     //
     void precondition(dVector& dst,const dVector& src) { dst=src; }
 
+    const dSMatrixStruct & get_sparsity_pattern () const;
+    
     void print (ostream &) const;
 
                                     /**
@@ -191,5 +193,6 @@ class dSMatrix
                    int, int,
                    << "The dimensions " << arg1 << " and " << arg2
                    << " do not match properly.");
+    friend class ConstraintMatrix;
 };
 #endif
index 7a69579c1814b906de838b2a977bad480ef14a72..38b51072012bfa7595b127e7c70f045fffa740f7 100644 (file)
@@ -500,6 +500,13 @@ dSMatrix::SSOR(dVector& dst, double om)
 }
 
 
+
+const dSMatrixStruct & dSMatrix::get_sparsity_pattern () const {
+  return *cols;
+};
+
+
+
 void dSMatrix::print (ostream &out) const {
   Assert (cols != 0, ExcMatrixNotInitialized());
 

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.