aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mg2d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mg2d.c b/mg2d.c
index 103f514..58886cd 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -890,11 +890,11 @@ static int mg_levels_init(MG2DContext *ctx)
}
diff0_max = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_00]->data, priv->root->solver->domain_size,
- ctx->diff_coeffs[MG2D_DIFF_COEFF_00]->stride);
+ priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_00]->stride[0]);
diff2_max = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_20]->data, priv->root->solver->domain_size,
- ctx->diff_coeffs[MG2D_DIFF_COEFF_20]->stride);
+ priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_20]->stride[0]);
tmp = findmax(priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_02]->data, priv->root->solver->domain_size,
- ctx->diff_coeffs[MG2D_DIFF_COEFF_02]->stride);
+ priv->diff_coeffs_tmp[MG2D_DIFF_COEFF_02]->stride[0]);
diff2_max = MAX(diff2_max, tmp);
if (priv->dg->nb_components > 1) {