]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix petsc_snes_05/06
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 12 Jun 2023 17:57:42 +0000 (13:57 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 12 Jun 2023 17:59:26 +0000 (13:59 -0400)
tests/petsc/petsc_snes_05.cc
tests/petsc/petsc_snes_06.cc
tests/petsc/petsc_ts_04.cc

index 03d2084234fd766f9a792e06e2ccaad293d78dcd..4619f9f90e52a6a75dcc644822b5da0f3be7e960 100644 (file)
@@ -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
       {
index cc446faec4896acf526b7c642809a30358e58538..68466edfab7dd526520d191f79ce56dff4005a14 100644 (file)
@@ -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
       {
index 3dc16f06fb40f5b2ce4dafd6de51037927299b17..73c0cda0c8d1fc9e89e31d7586a04733f1a4441d 100644 (file)
@@ -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="

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.