]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added two getter functions in ProcessGrid class
authorSambit Das <dsambit@umich.edu>
Tue, 20 Nov 2018 21:43:11 +0000 (16:43 -0500)
committerSambit Das <dsambit@umich.edu>
Wed, 21 Nov 2018 05:16:53 +0000 (00:16 -0500)
fix indent

minor grammar fix

include/deal.II/base/process_grid.h

index b3548763e672440706202ab94a05e4a2000f865e..8e2064991a05cf350ce0965051217bb159cfca08 100644 (file)
@@ -118,6 +118,22 @@ namespace Utilities
       unsigned int
       get_process_grid_columns() const;
 
+      /**
+       * Return row of this process in the process grid.
+       *
+       * It's negative for in-active processes.
+       */
+      int
+      get_this_process_row() const;
+
+      /**
+       * Return column of this process in the process grid.
+       *
+       * It's negative for in-active processes.
+       */
+      int
+      get_this_process_column() const;
+
       /**
        * Send @p count values stored consequently starting at @p value from
        * the process with rank zero to processes which
@@ -217,6 +233,20 @@ namespace Utilities
     }
 
 
+    inline int
+    ProcessGrid::get_this_process_row() const
+    {
+      return this_process_row;
+    }
+
+
+    inline int
+    ProcessGrid::get_this_process_column() const
+    {
+      return this_process_column;
+    }
+
+
 
     inline bool
     ProcessGrid::is_process_active() const

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.