From: Wolfgang Bangerth Date: Tue, 17 Mar 1998 12:42:28 +0000 (+0000) Subject: Add possibility to get sparsity pattern out of a dSMatrix and make the ConstraintMatr... X-Git-Tag: v8.0.0~23180 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbebf2e7e0cc491b3e822dccb8b44f9739c4926f;p=dealii.git 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 --- 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());