From 81fb6eb4336c17058653ed7f8b30e2e93d049094 Mon Sep 17 00:00:00 2001 From: wolf Date: Mon, 18 Apr 2005 22:58:49 +0000 Subject: [PATCH] Fix some stupid bug when using an uninitialize variable that apparently only happens on newer MPI systems. git-svn-id: https://svn.dealii.org/trunk@10523 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.html | 11 ++++++++++- deal.II/examples/step-17/step-17.cc | 6 ++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/deal.II/doc/news/changes.html b/deal.II/doc/news/changes.html index 57b3ab98d1..d30dba3a4d 100644 --- a/deal.II/doc/news/changes.html +++ b/deal.II/doc/news/changes.html @@ -42,7 +42,6 @@ inconvenience this causes.
    -
  1. Changed: The template argument of BlockMatrixArray was changed to number, equal to the same argument of the used General

      +
    1. + Fixed: The step-17 example program had a stupid mistake in that it + initializes the pcout variable with an uninitialized value + of mpi_communicator. While this seems to have worked for + some older MPI implementations, this is no longer the case on some + other systems. It is now fixed. +
      + (WB, 2005/04/18) +

      +
    2. New: If there are references to other example programs in any of the step-XX programs, then they will now show up as crosslinks in the HTML diff --git a/deal.II/examples/step-17/step-17.cc b/deal.II/examples/step-17/step-17.cc index e7bd29bb5f..5e38916fab 100644 --- a/deal.II/examples/step-17/step-17.cc +++ b/deal.II/examples/step-17/step-17.cc @@ -391,12 +391,14 @@ ElasticProblem::get_this_mpi_process (const MPI_Comm &mpi_communicator) // processes), and call above helper // functions to determine the number of // processes and where the present one fits - // into this picture: + // into this picture. In addition, we make + // sure that output is only generated by the + // (globally) first process: template ElasticProblem::ElasticProblem () : pcout (std::cout, - get_this_mpi_process(mpi_communicator) == 0), + get_this_mpi_process(MPI_COMM_WORLD) == 0), dof_handler (triangulation), fe (FE_Q(1), dim), mpi_communicator (MPI_COMM_WORLD), -- 2.39.5