From 7bf74c10cb62cb7f103e8fc0fd5a470e808fd7c4 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 18 Jul 2024 17:13:41 -0600 Subject: [PATCH] Make some variables 'unsigned'. --- source/grid/tria.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.39.5