]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Provide default values for template arguments of MGMatrix.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Feb 2010 15:38:58 +0000 (15:38 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Feb 2010 15:38:58 +0000 (15:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@20592 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_matrix.h

index d6e7f9a1f6d0e977d77c4470cfa6e874f4c6e5fe..d66cf2c3de47707ebfc9b23e577c8fe919bd3324 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2003, 2004, 2005, 2006, 2009 by the deal.II authors
+//    Copyright (C) 2003, 2004, 2005, 2006, 2009, 2010 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -14,6 +14,7 @@
 #define __deal2__mg_matrix_h
 
 #include <lac/vector.h>
+#include <lac/sparse_matrix.h>
 #include <multigrid/mg_base.h>
 #include <multigrid/mg_level_object.h>
 
@@ -29,7 +30,7 @@ DEAL_II_NAMESPACE_OPEN
  *
  * @author Guido Kanschat, 2002
  */
-template <class MATRIX, class VECTOR>
+template <class MATRIX = SparseMatrix<double>, class VECTOR = Vector<double> >
 class MGMatrix : public MGMatrixBase<VECTOR>
 {
   public:

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.