From b4cfa31a8ce28af727494dda8c269af65b7e124c Mon Sep 17 00:00:00 2001
From: wolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Date: Tue, 17 Mar 1998 12:42:28 +0000
Subject: [PATCH] Add possibility to get sparsity pattern out of a dSMatrix and
 make the ConstraintMatrix a friend to dSMatrix

git-svn-id: https://svn.dealii.org/trunk@71 0785d39b-7218-0410-832d-ea1e28bc413d
---
 deal.II/lac/include/lac/dsmatrix.h | 3 +++
 deal.II/lac/source/dsmatrix.cc     | 7 +++++++
 2 files changed, 10 insertions(+)

diff --git a/deal.II/lac/include/lac/dsmatrix.h b/deal.II/lac/include/lac/dsmatrix.h
index 303c41cd5c..1c880274af 100644
--- a/deal.II/lac/include/lac/dsmatrix.h
+++ b/deal.II/lac/include/lac/dsmatrix.h
@@ -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
diff --git a/deal.II/lac/source/dsmatrix.cc b/deal.II/lac/source/dsmatrix.cc
index 7a69579c18..38b5107201 100644
--- a/deal.II/lac/source/dsmatrix.cc
+++ b/deal.II/lac/source/dsmatrix.cc
@@ -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());
 
-- 
2.39.5