]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make it compile with Sun C++ 5.9. Avoid error: cannot change access of BlockSparsityP...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2007 12:46:27 +0000 (12:46 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Aug 2007 12:46:27 +0000 (12:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@14965 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 5da1bc75e2d0a5568090547f09c8e5ab23ab1959..f8b1a4d9c5fa6352956570ac61b074716204a550 100644 (file)
@@ -617,13 +617,6 @@ class BlockCompressedSparsityPattern : public BlockSparsityPatternBase<Compresse
                                      */
     void reinit (const std::vector< unsigned int > &row_block_sizes,
                 const std::vector< unsigned int > &col_block_sizes);
-
-                                    /**
-                                     * Allow the use of the reinit
-                                     * functions of the base class as
-                                     * well.
-                                     */
-    BlockSparsityPatternBase<CompressedSparsityPattern>::reinit;
 };
 
 
@@ -709,13 +702,6 @@ class BlockCompressedSetSparsityPattern : public BlockSparsityPatternBase<Compre
                                      */
     void reinit (const std::vector< unsigned int > &row_block_sizes,
                 const std::vector< unsigned int > &col_block_sizes);
-
-                                    /**
-                                     * Allow the use of the reinit
-                                     * functions of the base class as
-                                     * well.
-                                     */
-    BlockSparsityPatternBase<CompressedSetSparsityPattern>::reinit;
 };
 
 
index 7968812b9fcc92311cbf08babbf38824f14af040..17e03f2e6b06100ca8a3008ea6ca07752770eaed 100644 (file)
@@ -425,7 +425,7 @@ BlockCompressedSparsityPattern::reinit (
   const std::vector< unsigned int > &row_block_sizes,
   const std::vector< unsigned int > &col_block_sizes)
 {
-  this->reinit(row_block_sizes.size(), col_block_sizes.size());
+  BlockSparsityPatternBase<CompressedSparsityPattern>::reinit(row_block_sizes.size(), col_block_sizes.size());
   for (unsigned int i=0;i<row_block_sizes.size();++i)
     for (unsigned int j=0;j<col_block_sizes.size();++j)
       this->block(i,j).reinit(row_block_sizes[i],col_block_sizes[j]);
@@ -467,7 +467,7 @@ BlockCompressedSetSparsityPattern::reinit (
   const std::vector< unsigned int > &row_block_sizes,
   const std::vector< unsigned int > &col_block_sizes)
 {
-  this->reinit(row_block_sizes.size(), col_block_sizes.size());
+  BlockSparsityPatternBase<CompressedSetSparsityPattern>::reinit(row_block_sizes.size(), col_block_sizes.size());
   for (unsigned int i=0;i<row_block_sizes.size();++i)
     for (unsigned int j=0;j<col_block_sizes.size();++j)
       this->block(i,j).reinit(row_block_sizes[i],col_block_sizes[j]);

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.