From 3c4c878efe25d284e07a10c407356c8d3e2f7937 Mon Sep 17 00:00:00 2001 From: Sambit Das Date: Tue, 20 Nov 2018 16:43:11 -0500 Subject: [PATCH] Added two getter functions in ProcessGrid class fix indent minor grammar fix --- include/deal.II/base/process_grid.h | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/deal.II/base/process_grid.h b/include/deal.II/base/process_grid.h index b3548763e6..8e2064991a 100644 --- a/include/deal.II/base/process_grid.h +++ b/include/deal.II/base/process_grid.h @@ -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 -- 2.39.5