aboutsummaryrefslogtreecommitdiff
path: root/mg2d.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-11-27 11:32:58 +0100
committerAnton Khirnov <anton@khirnov.net>2018-11-28 17:33:35 +0100
commit469823efa670590f9847373b772534b393be1d89 (patch)
treee19f218dcca467c77b3705374f9f2d2e6558083b /mg2d.h
parentfe9ca236396f16bc4d22521eee20e71ea5febac2 (diff)
Finish support for 4th order accuracy.
ABI and API break.
Diffstat (limited to 'mg2d.h')
-rw-r--r--mg2d.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/mg2d.h b/mg2d.h
index a0c0c70..4ccb5da 100644
--- a/mg2d.h
+++ b/mg2d.h
@@ -108,14 +108,20 @@ typedef struct MG2DBoundary {
/**
* For type = MG2D_BC_TYPE_FIXVAL:
* Values of the unknown function on the boundary.
+ * The number of boundary layers is equal to fd_stencil.
+ * The first boundary layer has the number of points equal to the
+ * corresponding domain_size. Each subsequent boundary layer has one
+ * more boundary point at each end of the domain.
*
* Ignored otherwise.
*/
double *val;
/**
- * Number of elements in val.
+ * Number of elements between rows in val. I.e. if val[0] is the first
+ * boundary point, then val[val_stride - 1] is the first boundary point in
+ * the second row and so on.
*/
- size_t val_len;
+ size_t val_stride;
} MG2DBoundary;
typedef struct MG2DContext {