From d4c0b61225c18c8490321f3c9dda61818aa8ba4a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 12 Jun 2023 13:57:42 -0400 Subject: [PATCH] Fix petsc_snes_05/06 --- tests/petsc/petsc_snes_05.cc | 1 + tests/petsc/petsc_snes_06.cc | 1 + tests/petsc/petsc_ts_04.cc | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) 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=" -- 2.39.5