aboutsummaryrefslogtreecommitdiff
path: root/mg2d_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'mg2d_test.c')
-rw-r--r--mg2d_test.c2
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);
}