From: Daniel Arndt Date: Mon, 12 Jun 2023 17:57:42 +0000 (-0400) Subject: Fix petsc_snes_05/06 X-Git-Tag: v9.5.0-rc1~98^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c0b61225c18c8490321f3c9dda61818aa8ba4a;p=dealii.git Fix petsc_snes_05/06 --- diff --git a/tests/petsc/petsc_snes_05.cc b/tests/petsc/petsc_snes_05.cc index 03d2084234..4619f9f90e 100644 --- a/tests/petsc/petsc_snes_05.cc +++ b/tests/petsc/petsc_snes_05.cc @@ -63,6 +63,7 @@ main(int argc, char **argv) auto commrank = Utilities::MPI::this_mpi_process(MPI_COMM_WORLD); VectorType x(MPI_COMM_WORLD, 1, commrank == commsize - 1 ? 1 : 0); x(0) = 1.0; + x.compress(VectorOperation::insert); try { diff --git a/tests/petsc/petsc_snes_06.cc b/tests/petsc/petsc_snes_06.cc index cc446faec4..68466edfab 100644 --- a/tests/petsc/petsc_snes_06.cc +++ b/tests/petsc/petsc_snes_06.cc @@ -80,6 +80,7 @@ main(int argc, char **argv) auto commrank = Utilities::MPI::this_mpi_process(MPI_COMM_WORLD); VectorType x(MPI_COMM_WORLD, 1, commrank == commsize - 1 ? 1 : 0); x(0) = starting_x; + x.compress(VectorOperation::insert); try { diff --git a/tests/petsc/petsc_ts_04.cc b/tests/petsc/petsc_ts_04.cc index 3dc16f06fb..73c0cda0c8 100644 --- a/tests/petsc/petsc_ts_04.cc +++ b/tests/petsc/petsc_ts_04.cc @@ -151,7 +151,6 @@ public: // solver is used. time_stepper.explicit_function = [&](const real_type t, const VectorType &y, VectorType &res) -> void { - if (t > last_eval_time + 0.1) { deallog << "Time step too large: last_eval_time="