From f05415ca6f53d8d925800f4deff7e9400aeffaeb Mon Sep 17 00:00:00 2001 From: Jonathan Robey Date: Tue, 6 Aug 2019 18:36:49 -0600 Subject: [PATCH] Minor style edits --- doc/news/changes/minor/20190806JonathanRobey | 2 +- include/deal.II/lac/block_matrix_base.h | 1 - tests/lac/block_matrices_05.cc | 8 ++------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/doc/news/changes/minor/20190806JonathanRobey b/doc/news/changes/minor/20190806JonathanRobey index bbe0ac92c0..adebcbf000 100644 --- a/doc/news/changes/minor/20190806JonathanRobey +++ b/doc/news/changes/minor/20190806JonathanRobey @@ -1,2 +1,2 @@ -New: Added frobenius_norm method to BlockMatrixBase +New: Added frobenius_norm method to BlockMatrixBase. (Jonathan Robey, 2019/08/06) diff --git a/include/deal.II/lac/block_matrix_base.h b/include/deal.II/lac/block_matrix_base.h index ce2649802f..86b97c4063 100644 --- a/include/deal.II/lac/block_matrix_base.h +++ b/include/deal.II/lac/block_matrix_base.h @@ -2414,7 +2414,6 @@ BlockMatrixBase::frobenius_norm() const { value_type norm_sqr = 0; - // For each block, get the Frobenius norm, and add the square to the // accumulator for the full matrix for (unsigned int row = 0; row < n_block_rows(); ++row) diff --git a/tests/lac/block_matrices_05.cc b/tests/lac/block_matrices_05.cc index d85fd20551..f476368772 100644 --- a/tests/lac/block_matrices_05.cc +++ b/tests/lac/block_matrices_05.cc @@ -15,7 +15,7 @@ // Test that the frobenius_norm function returns the correct value -// for a block matrix +// for a block matrix. #include @@ -31,10 +31,7 @@ int main() { - std::ofstream logfile("output"); - deallog << std::fixed; - deallog << std::setprecision(2); - deallog.attach(logfile); + initlog(); BlockSparsityPattern bsp(2, 2); // set sizes @@ -65,7 +62,6 @@ main() ExcInternalError()); deallog << "OK" << std::endl; - deallog << std::flush; return 0; } -- 2.39.5