From: Sambit Das Date: Tue, 20 Nov 2018 21:43:11 +0000 (-0500) Subject: Added two getter functions in ProcessGrid class X-Git-Tag: v9.1.0-rc1~536^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c4c878efe25d284e07a10c407356c8d3e2f7937;p=dealii.git Added two getter functions in ProcessGrid class fix indent minor grammar fix --- 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