From 484946f3d4d448b564453bb41d8df1d9ced1be82 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@dune-project.org>
Date: Mon, 25 Jan 2010 08:53:40 +0000
Subject: [PATCH] Test the new BTDMatrix

[[Imported from SVN: r1159]]
---
 dune/istl/test/matrixtest.cc | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dune/istl/test/matrixtest.cc b/dune/istl/test/matrixtest.cc
index d354d9a26..1770145e6 100644
--- a/dune/istl/test/matrixtest.cc
+++ b/dune/istl/test/matrixtest.cc
@@ -8,6 +8,7 @@
 #include <dune/istl/bcrsmatrix.hh>
 #include <dune/istl/matrix.hh>
 #include <dune/istl/bdmatrix.hh>
+#include <dune/istl/btdmatrix.hh>
 #include <dune/istl/scaledidmatrix.hh>
 #include <dune/istl/diagonalmatrix.hh>
 
@@ -314,6 +315,15 @@ int main()
 
   testSuperMatrix(bdMatrix);
 
+  // ////////////////////////////////////////////////////////////////////////
+  //   Test the BTDMatrix class -- a dynamic block-tridiagonal matrix
+  // ////////////////////////////////////////////////////////////////////////
+
+  BTDMatrix<FieldMatrix<double,1,1> > btdMatrix(4);
+  btdMatrix = 4.0;
+
+  testSuperMatrix(btdMatrix);
+
   // ////////////////////////////////////////////////////////////////////////
   //   Test the FieldMatrix class
   // ////////////////////////////////////////////////////////////////////////
-- 
GitLab