]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make some variables 'unsigned'. 17295/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 18 Jul 2024 23:13:41 +0000 (17:13 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 20 Jul 2024 03:08:42 +0000 (21:08 -0600)
source/grid/tria.cc

index 87623aa531d4705a5b6a5827ab3546c15ee4ff05..f42b5425fe4bcaee48fcff1aaa5e1c22dbac1834 100644 (file)
@@ -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)
       {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.