]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Testsuite: Bugfix: Add missing interface in linear_operator_01 927/head
authorMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 12 May 2015 11:29:40 +0000 (13:29 +0200)
committerMatthias Maier <matthias.maier@iwr.uni-heidelberg.de>
Tue, 12 May 2015 11:29:40 +0000 (13:29 +0200)
tests/lac/linear_operator_01.cc

index 5b7fe75ece492791b5fd4b0f2e2c1c4771137d52..31eb357d3bca21a961958c390e6296dfbf841db1 100644 (file)
@@ -31,6 +31,11 @@ struct LeftVector
   typedef double value_type;
   double value;
 
+  LeftVector & operator = (double new_value)
+  {
+    value = new_value;
+    return *this;
+  }
   LeftVector & operator *= (double scale)
   {
     value *= scale;
@@ -61,6 +66,11 @@ struct RightVector
   typedef double value_type;
   double value;
 
+  RightVector & operator = (double new_value)
+  {
+    value = new_value;
+    return *this;
+  }
   RightVector & operator *= (double scale)
   {
     value *= scale;

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.