From 9226e25646072483f2d37800aca9bce7478bd419 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 11 Mar 2003 10:09:25 +0000 Subject: [PATCH] BlockSparseMatrixEZ in lib git-svn-id: https://svn.dealii.org/trunk@7310 0785d39b-7218-0410-832d-ea1e28bc413d --- .../lac/block_sparse_matrix_ez.templates.h | 18 ++++++++++-------- deal.II/lac/source/block_sparse_matrix_ez.cc | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 deal.II/lac/source/block_sparse_matrix_ez.cc diff --git a/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h b/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h index efda1927c6..cef984a3bd 100644 --- a/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h +++ b/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h @@ -58,8 +58,10 @@ BlockSparseMatrixEZ & BlockSparseMatrixEZ:: operator = (const BlockSparseMatrixEZ &m) { - Assert (n_block_rows() == m.n_block_rows(), ExcIncompatibleObjects()); - Assert (n_block_cols() == m.n_block_cols(), ExcIncompatibleObjects()); + Assert (n_block_rows() == m.n_block_rows(), + ExcDimensionMismatch(n_block_rows(), m.n_block_rows())); + Assert (n_block_cols() == m.n_block_cols(), + ExcDimensionMismatch(n_block_cols(), m.n_block_cols())); // this operator does not do // anything except than checking // whether the base objects want to @@ -131,14 +133,14 @@ BlockSparseMatrixEZ::collect_sizes () // first find out the row sizes // from the first block column for (unsigned int r=0; r::collect_sizes () // then do the same with the columns for (unsigned int c=0; c + +// explicit instantiations +template class BlockSparseMatrixEZ; +template class BlockSparseMatrixEZ; -- 2.39.5