From fc5231e4eccab865fae001c13f3b54896d23cdf6 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 19 Jul 2024 12:23:52 -0400 Subject: [PATCH] step-33: disallow MPI --- examples/step-33/step-33.cc | 5 +++++ ...ith_sacado=true.with_muparser=true.output} | 21 ------------------- 2 files changed, 5 insertions(+), 21 deletions(-) rename tests/examples/{step-33.mpirun=2.with_trilinos_with_sacado=true.with_muparser=true.output => step-33.with_trilinos_with_sacado=true.with_muparser=true.output} (50%) diff --git a/examples/step-33/step-33.cc b/examples/step-33/step-33.cc index 526e578206..0610f0d604 100644 --- a/examples/step-33/step-33.cc +++ b/examples/step-33/step-33.cc @@ -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(); } diff --git a/tests/examples/step-33.mpirun=2.with_trilinos_with_sacado=true.with_muparser=true.output b/tests/examples/step-33.with_trilinos_with_sacado=true.with_muparser=true.output 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 4e17099e1d..f5a5be17b5 100644 --- a/tests/examples/step-33.mpirun=2.with_trilinos_with_sacado=true.with_muparser=true.output +++ b/tests/examples/step-33.with_trilinos_with_sacado=true.with_muparser=true.output @@ -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 -- 2.39.5