]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-33: disallow MPI 17308/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 19 Jul 2024 16:23:52 +0000 (12:23 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 19 Jul 2024 16:27:14 +0000 (12:27 -0400)
examples/step-33/step-33.cc
tests/examples/step-33.with_trilinos_with_sacado=true.with_muparser=true.output [moved from tests/examples/step-33.mpirun=2.with_trilinos_with_sacado=true.with_muparser=true.output with 50% similarity]

index 526e5782061392be5c82dec2bb2a84c6594003ac..0610f0d6046f1c89014d77bf84c3ae2c0eb602eb 100644 (file)
@@ -2556,6 +2556,11 @@ int main(int argc, char *argv[])
       Utilities::MPI::MPI_InitFinalize mpi_initialization(
         argc, argv, numbers::invalid_unsigned_int);
 
+      AssertThrow(
+        Utilities::MPI::n_mpi_processes(MPI_COMM_WORLD) == 1,
+        ExcMessage(
+          "This program does not support parallel computing via MPI."));
+
       ConservationLaw<2> cons(argv[1]);
       cons.run();
     }
similarity index 50%
rename from tests/examples/step-33.mpirun=2.with_trilinos_with_sacado=true.with_muparser=true.output
rename to tests/examples/step-33.with_trilinos_with_sacado=true.with_muparser=true.output
index 4e17099e1d3d19cca0bd336cf22bbb198db5f34f..f5a5be17b569f9827a0740952d4e8aee28080190 100644 (file)
@@ -4,20 +4,9 @@ T=0
 
    NonLin Res     Lin Iter       Lin Res
    _____________________________________
-T=0
-   Number of active cells:       1702
-   Number of degrees of freedom: 7288
-
-   NonLin Res     Lin Iter       Lin Res
-   _____________________________________
-   5.1e-02          within        5.7e-13
    5.1e-02          within        5.7e-13
    4.4e-04          within        1.2e-14
-   4.4e-04          within        1.2e-14
    2.2e-07          within        7.0e-18
-   2.2e-07          within        7.0e-18
-   2.5e-13          (converged)
-
    2.5e-13          (converged)
 
 T=0.02
@@ -26,18 +15,8 @@ T=0.02
 
    NonLin Res     Lin Iter       Lin Res
    _____________________________________
-T=0.02
-   Number of active cells:       1792
-   Number of degrees of freedom: 7660
-
-   NonLin Res     Lin Iter       Lin Res
-   _____________________________________
-   2.0e-02          within        1.5e-12
    2.0e-02          within        1.5e-12
    1.1e-04          within        3.6e-15
-   1.1e-04          within        3.6e-15
-   2.2e-08          within        8.0e-19
    2.2e-08          within        8.0e-19
    2.1e-15          (converged)
 
-   2.1e-15          (converged)
\ No newline at end of file

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.