]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix linear operator
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 20 Feb 2019 14:53:31 +0000 (15:53 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 20 Feb 2019 17:22:28 +0000 (18:22 +0100)
include/deal.II/lac/linear_operator.h
include/deal.II/lac/read_write_vector.templates.h
source/base/utilities.cc

index b8e118fe112cf4a69843e8e76c217308c63ef64a..2947a092d400bc1573a71fbab503fe1b7c7f9a95 100644 (file)
@@ -856,7 +856,7 @@ template <
 LinearOperator<Range, Range, Payload>
 identity_operator(const std::function<void(Range &, bool)> &reinit_vector)
 {
-  LinearOperator<Range, Range, Payload> return_op((Payload()));
+  LinearOperator<Range, Range, Payload> return_op{Payload()};
 
   return_op.reinit_range_vector  = reinit_vector;
   return_op.reinit_domain_vector = reinit_vector;
index cfbbc7db890b74c06d1dcbffa1049eecf509ea0b..c2854d9af276112bf6d21e2cf64cbc5fba94c8d9 100644 (file)
@@ -874,7 +874,7 @@ namespace LinearAlgebra
         for (unsigned int i = 0; i < n_elements; ++i)
           {
             Assert(
-              std::imag(new_values[i]) == 0.,
+              std::imag(tmp[i]) == 0.,
               ExcMessage(
                 "VectorOperation::min is not defined if there is an imaginary part!)"));
             Assert(
@@ -898,7 +898,7 @@ namespace LinearAlgebra
         for (unsigned int i = 0; i < n_elements; ++i)
           {
             Assert(
-              std::imag(new_values[i]) == 0.,
+              std::imag(tmp[i]) == 0.,
               ExcMessage(
                 "VectorOperation::max is not defined if there is an imaginary part!)"));
             Assert(
index d5f120192bf6c2002ededdf00eb18a192eba1d5a..c09874105d4e8972d5593f5263247795818b8cb2 100644 (file)
@@ -60,6 +60,7 @@
 #    include <deal.II/lac/vector_memory.h>
 
 #    include <Epetra_MpiComm.h>
+#    include <Teuchos_DefaultComm.hpp>
 #  endif
 #  include <Epetra_SerialComm.h>
 #  include <Teuchos_RCP.hpp>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.