aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-15 13:25:52 +0200
committerAnton Khirnov <anton@khirnov.net>2024-04-15 13:34:56 +0200
commit9d81352277f72bb2b337446d75a8b72a9607b658 (patch)
tree2ff036b48fc1813c447d7af0e27eeac8cc22bd4c
parent098523b825c14184592a8717c2c3becbf6bc3f9f (diff)
mg2d: use correct stride
-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) {