diff options
author | Anton Khirnov <anton@khirnov.net> | 2019-06-13 12:01:23 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2019-06-13 12:02:01 +0200 |
commit | ea62eb612ebf08fee28c4fbb009ee24b0cf4079b (patch) | |
tree | 4e511cdb8c72317404e83b91e1739bb41a542905 /mg2d_test.c | |
parent | 0dcfc376b057a3873934d1501491f991ade37194 (diff) |
mg2d: add API for specifying singular diff coeffs at the boundaries
API and ABI break.
Diffstat (limited to 'mg2d_test.c')
-rw-r--r-- | mg2d_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mg2d_test.c b/mg2d_test.c index fc1d7dd..ec21d7d 100644 --- a/mg2d_test.c +++ b/mg2d_test.c @@ -157,7 +157,7 @@ int main(int argc, char **argv) double rhs = 0.0; for (int i = 0; i < MG2D_DIFF_COEFF_NB; i++) { - ctx->diff_coeffs[i][ctx->diff_coeffs_stride * y + x] = pde_coeffs[i]; + ctx->diff_coeffs[i]->data[ctx->diff_coeffs[i]->stride * y + x] = pde_coeffs[i]; rhs += pde_coeffs[i] * sol[i](x_coord, y_coord); } |