aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mg2d.h b/mg2d.h
index 1db4ace..47d709e 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -162,6 +162,23 @@ typedef struct MG2DContext {
* exact solve is performed.
*/
size_t max_exact_size;
+
+ /**
+ * Indices of the lower left corner of the local domain in the full
+ * computational grid, for distributed solvers. Always { 0, 0 } for
+ * single-component solvers.
+ *
+ * Set by mg2d_solver_alloc[_mpi]().
+ */
+ ptrdiff_t local_start[2];
+
+ /**
+ * Number of points in the local component in each direction. Equal to
+ * { domain_size, domain_size } for single-component solvers.
+ *
+ * Set by mg2d_solver_alloc[_mpi]().
+ */
+ size_t local_size[2];
} MG2DContext;
/**