From: bangerth Date: Sun, 19 Aug 2012 23:00:16 +0000 (+0000) Subject: Avoid a couple of warnings. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ad3a5761c3cc2291cb084e25ee599af4e3aef42;p=dealii-svn.git Avoid a couple of warnings. git-svn-id: https://svn.dealii.org/trunk@26020 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/collective_02.cc b/tests/mpi/collective_02.cc index 4f1cc1ea93..577c5a1f17 100644 --- a/tests/mpi/collective_02.cc +++ b/tests/mpi/collective_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010, 2011 by the deal.II authors +// Copyright (C) 2009, 2010, 2011, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -24,7 +24,11 @@ void test() unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD); const unsigned int numprocs = Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD); - int int_sum, uint_sum, double_sum, float_sum; + int int_sum; + unsigned int uint_sum; + double double_sum; + float float_sum; + int_sum = Utilities::MPI::sum(myid+1, diff --git a/tests/mpi/collective_03.cc b/tests/mpi/collective_03.cc index 89a6bee8a7..0fa7e1eceb 100644 --- a/tests/mpi/collective_03.cc +++ b/tests/mpi/collective_03.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010, 2011 by the deal.II authors +// Copyright (C) 2009, 2010, 2011, 2012 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -24,7 +24,11 @@ void test() unsigned int myid = Utilities::MPI::this_mpi_process (MPI_COMM_WORLD); const unsigned int numprocs = Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD); - int int_sum, uint_sum, double_sum, float_sum; + int int_sum; + unsigned int uint_sum; + double double_sum; + float float_sum; + int_sum = Utilities::MPI::max(myid+1,