]> 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>
Sun, 22 Jan 2023 11:03:03 +0000 (14:03 +0300)
tests/petsc/slowness_02.cc
tests/petsc/slowness_03.cc
tests/petsc/slowness_04.cc

index 7597c22075ae461617b9d042ffb316e46af53e14..bddad8aeb455544c0c60b0fd761f7f40fe4694d2 100644 (file)
@@ -76,6 +76,8 @@ test()
     v2(indices, MPI_COMM_WORLD);
   for (unsigned int i = 0; i < N * N; ++i)
     v1(i) = i;
+  v1.compress(VectorOperation::insert);
+
   matrix.vmult(v2, v1);
 
   deallog << v1 * v2 << std::endl;
index d00fa852339e9634c3c53abbcb4b634cf277ef71..e4f59d91b7fd09c0934c4532b5fd1e1e685733a9 100644 (file)
@@ -112,6 +112,8 @@ test()
   PETScWrappers::MPI::Vector v2(PETSC_COMM_WORLD, N * N, N * N);
   for (unsigned int i = 0; i < N * N; ++i)
     v1(i) = i;
+  v1.compress(VectorOperation::insert);
+
   matrix.vmult(v2, v1);
 
   deallog << v1 * v2 << std::endl;
index d4b91a0dfb14e1f4ccff16a1def48620a5364e58..f4d7d4089745826e67232b7a71e4f69fa3c43bbe 100644 (file)
@@ -145,6 +145,8 @@ test()
   PETScWrappers::MPI::Vector v2(PETSC_COMM_WORLD, N * N, N * N);
   for (unsigned int i = 0; i < N * N; ++i)
     v1(i) = i;
+  v1.compress(VectorOperation::insert);
+
   matrix.vmult(v2, v1);
 
   deallog << v1 * v2 << std::endl;

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.