From 988d3821cd594c67841ca3ab8bdb81bf5a8164d3 Mon Sep 17 00:00:00 2001 From: Razvan Nane Date: Fri, 31 May 2024 11:55:53 +0200 Subject: [PATCH] fix compile rocsparseWellContrib --- opm/simulators/linalg/bda/rocsparseWellContributions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/simulators/linalg/bda/rocsparseWellContributions.cpp b/opm/simulators/linalg/bda/rocsparseWellContributions.cpp index f77bfc59d..01bdc7bd5 100644 --- a/opm/simulators/linalg/bda/rocsparseWellContributions.cpp +++ b/opm/simulators/linalg/bda/rocsparseWellContributions.cpp @@ -144,9 +144,9 @@ apply_stdwells([[maybe_unused]] Scalar* d_x, [[maybe_unused]] Scalar* d_y) { #ifdef __HIP__ - unsigned gridDim = num_std_wells; + unsigned gridDim = this->num_std_wells; unsigned blockDim = 64; - unsigned shared_mem_size = (blockDim + 2 * dim_wells) * sizeof(Scalar); // shared memory for localSum, z1 and z2 + unsigned shared_mem_size = (blockDim + 2 * this->dim_wells) * sizeof(Scalar); // shared memory for localSum, z1 and z2 // dim3(N) will create a vector {N, 1, 1} stdwell_apply<<>>(d_Cnnzs_hip, d_Dnnzs_hip, @@ -155,8 +155,8 @@ apply_stdwells([[maybe_unused]] Scalar* d_x, d_Bcols_hip, d_x, d_y, - dim, - dim_wells, + this->dim, + this->dim_wells, d_val_pointers_hip ); HIP_CHECK(hipStreamSynchronize(stream));