From ea62eb612ebf08fee28c4fbb009ee24b0cf4079b Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 13 Jun 2019 12:01:23 +0200 Subject: mg2d: add API for specifying singular diff coeffs at the boundaries API and ABI break. --- mg2d_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mg2d_test.c') 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); } -- cgit v1.2.3