]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
missing constructor implemented
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2001 08:13:09 +0000 (08:13 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2001 08:13:09 +0000 (08:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@5152 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/block_sparsity_pattern.cc

index 702b0eebddc1b5884f42bc41f14bbb7f974ef115..f07f93b816965903a5b38c3b8125887d1376c22a 100644 (file)
@@ -40,10 +40,13 @@ BlockSparsityPatternBase (const unsigned int r,
 
 template <class SparsityPatternBase>
 BlockSparsityPatternBase<SparsityPatternBase>::BlockSparsityPatternBase (
-  const BlockSparsityPatternBase<SparsityPatternBase>&)
+  const BlockSparsityPatternBase<SparsityPatternBase>& s)
 {
-//TODO: Find out if this is really needed
-  abort();
+  Assert(s.rows==0, ExcInvalidConstructorCall());
+  Assert(s.columns==0, ExcInvalidConstructorCall());
+
+  rows = 0;
+  columns=0;
 };
 
 

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.