]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add missing compress in tests
authorStefano Zampini <stefano.zampini@gmail.com>
Tue, 17 Jan 2023 08:59:13 +0000 (11:59 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Tue, 24 Jan 2023 08:03:15 +0000 (11:03 +0300)
tests/lac/linear_operator_09.cc

index 4840b0528d10d57836d58c4f59f5963905826abe..a2dbd98b36e5b3e9ea881367fd7a18c9c6343dd8 100644 (file)
@@ -74,6 +74,8 @@ main(int argc, char *argv[])
           u[i] = 1;
         for (auto i : v.locally_owned_elements())
           v[i] = 1;
+        u.compress(VectorOperation::insert);
+        v.compress(VectorOperation::insert);
 
         op_a.vmult(v, u);
       }

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.