From: Wolfgang Bangerth Date: Thu, 18 Jul 2024 23:13:41 +0000 (-0600) Subject: Make some variables 'unsigned'. X-Git-Tag: v9.6.0-rc1~57^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17295%2Fhead;p=dealii.git Make some variables 'unsigned'. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index 87623aa531..f42b5425fe 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -683,8 +683,10 @@ namespace internal // DataOutInterface::write_vtu_in_parallel. // TODO: Write general MPIIO interface. - const int myrank = Utilities::MPI::this_mpi_process(mpi_communicator); - const int mpisize = Utilities::MPI::n_mpi_processes(mpi_communicator); + const unsigned int myrank = + Utilities::MPI::this_mpi_process(mpi_communicator); + const unsigned int mpisize = + Utilities::MPI::n_mpi_processes(mpi_communicator); if (mpisize > 1) { @@ -921,7 +923,8 @@ namespace internal // DataOutInterface::write_vtu_in_parallel. // TODO: Write general MPIIO interface. - const int mpisize = Utilities::MPI::n_mpi_processes(mpi_communicator); + const unsigned int mpisize = + Utilities::MPI::n_mpi_processes(mpi_communicator); if (mpisize > 1) {