From 595f6783dc752f0338a0326485864ba2798fbf29 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Wed, 7 Jan 2009 08:54:52 +0000 Subject: [PATCH] Need to set up MPI_InitFinalize for Trilinos programs to make them work for both serial and MPI compilers. git-svn-id: https://svn.dealii.org/trunk@18113 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-33/step-33.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-33/step-33.cc b/deal.II/examples/step-33/step-33.cc index 3f8be06826..560d4ff4ed 100644 --- a/deal.II/examples/step-33/step-33.cc +++ b/deal.II/examples/step-33/step-33.cc @@ -3105,9 +3105,9 @@ void ConservationLaw::run () // The following ``main'' function is // similar to previous examples and // need not to be commented on. Note - // that the program aborts if no - // input file name is given on the - // command line. + // that the program aborts if no input + // file name is given on the command + // line. int main (int argc, char *argv[]) { deallog.depth_console(0); @@ -3119,6 +3119,7 @@ int main (int argc, char *argv[]) try { + Utilities::System::MPI_InitFinalize mpi_initialization (argc, argv); ConservationLaw<2> cons (argv[1]); cons.run (); } -- 2.39.5