From: Jonathan Robey Date: Wed, 7 Aug 2019 00:36:49 +0000 (-0600) Subject: Minor style edits X-Git-Tag: v9.2.0-rc1~1286^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f05415ca6f53d8d925800f4deff7e9400aeffaeb;p=dealii.git Minor style edits --- 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; }