From f475f72548c5152c81dec23e80619b08e4cd5c54 Mon Sep 17 00:00:00 2001 From: Reza Rastak Date: Tue, 3 Sep 2019 08:08:04 -0700 Subject: [PATCH] BlockVectorBase::equ with 4 arguments removed --- .../incompatibilities/20190903RezaRastak | 3 ++ include/deal.II/lac/block_vector_base.h | 32 ------------------- 2 files changed, 3 insertions(+), 32 deletions(-) create mode 100644 doc/news/changes/incompatibilities/20190903RezaRastak diff --git a/doc/news/changes/incompatibilities/20190903RezaRastak b/doc/news/changes/incompatibilities/20190903RezaRastak new file mode 100644 index 0000000000..c3ccc71bd7 --- /dev/null +++ b/doc/news/changes/incompatibilities/20190903RezaRastak @@ -0,0 +1,3 @@ +Removed: BlockVectorBase::equ(a, U, b, V) is removed. +
+(Reza Rastak, 2019/09/03) diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index f9283d43c7..2b21299ee2 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -935,15 +935,6 @@ public: void equ(const value_type a, const BlockVector2 &V); - /** - * U=a*V+b*W. Replacing by sum. - */ - void - equ(const value_type a, - const BlockVectorBase &V, - const value_type b, - const BlockVectorBase &W); - /** * Update the ghost values by calling update_ghost_values for * each block. @@ -1948,29 +1939,6 @@ BlockVectorBase::scale(const BlockVector2 &v) -template -void -BlockVectorBase::equ(const value_type a, - const BlockVectorBase &v, - const value_type b, - const BlockVectorBase &w) -{ - AssertIsFinite(a); - AssertIsFinite(b); - - Assert(n_blocks() == v.n_blocks(), - ExcDimensionMismatch(n_blocks(), v.n_blocks())); - Assert(n_blocks() == w.n_blocks(), - ExcDimensionMismatch(n_blocks(), w.n_blocks())); - - for (size_type i = 0; i < n_blocks(); ++i) - { - components[i].equ(a, v.components[i], b, w.components[i]); - } -} - - - template std::size_t BlockVectorBase::memory_consumption() const -- 2.39.5