diff options
-rw-r--r-- | mg2d.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |