diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-06-02 17:28:05 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-06-02 17:28:05 +0200 |
commit | 786ecb7e5a95d84c26c14de0656dce050e7a8478 (patch) | |
tree | ba8e36a2a4e48275167a4e97ecaace57337b8b2f /mg2d.h | |
parent | 21d5c9c6a7bffee18863e0d7c0d21624420ee2f6 (diff) |
mg2d: export the local component extents in public API
Diffstat (limited to 'mg2d.h')
-rw-r--r-- | mg2d.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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; /** |