Skip to content

Commit c854bdf

Browse files
committed
fix compilation
1 parent fe1c202 commit c854bdf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/rxmesh/matrix/gmg/v_cycle_better_ptap.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,16 @@ struct VCycle_Better : public rxmesh::VCycle<T>
216216
{
217217
const double error_threshold = 1e-3;
218218
m_verification_a.resize(gmg.m_num_levels - 1);
219-
pt_A_p(gmg.m_prolong_op[0], A, m_verification_a[0]);
219+
this->pt_A_p(gmg.m_prolong_op[0], A, m_verification_a[0]);
220220
for (int l = 1; l < gmg.m_num_levels - 1; ++l) {
221-
pt_A_p(gmg.m_prolong_op[l],
221+
this->pt_A_p(gmg.m_prolong_op[l],
222222
m_verification_a[l - 1].a,
223223
m_verification_a[l]);
224224
}
225225
constexpr uint32_t blockThreads = 256;
226226

227227
for (int i = 0; i < gmg.m_num_levels - 1; ++i) {
228-
auto our_a = m_a[i].a;
228+
auto our_a = this->m_a[i].a;
229229
auto correct_a = m_verification_a[i].a;
230230
if (!our_a.non_zeros() == correct_a.non_zeros())
231231
{
@@ -281,9 +281,9 @@ struct VCycle_Better : public rxmesh::VCycle<T>
281281
SparseMatrixConstantNNZRow<float, 3> p_const = gmg.m_prolong_op[i];
282282
auto p_t = p_const.transpose();
283283
if (i == 0) {
284-
new_ptap(p_const, p_t, m_a[i].a, A);
284+
new_ptap(p_const, p_t, this->m_a[i].a, A);
285285
} else {
286-
new_ptap(p_const, p_t, m_a[i].a, m_a[i - 1].a);
286+
new_ptap(p_const, p_t, this->m_a[i].a, this->m_a[i - 1].a);
287287
}
288288
}
289289
}

include/rxmesh/matrix/gmg_solver.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ struct GMGSolver : public IterativeSolver<T, DenseMatrix<T>>
147147
// RXMESH_TRACE("GMG: current residual: {}", max_residual);
148148

149149
if (abs_ok || rel_ok) {
150-
m_final_residual = max_residual;
150+
this->m_final_residual = max_residual;
151151
}
152152

153153
return abs_ok || rel_ok;
@@ -178,8 +178,8 @@ struct GMGSolver : public IterativeSolver<T, DenseMatrix<T>>
178178

179179
if (is_converged_special_gpu(*m_A, X, m_v_cycle->B)) {
180180
RXMESH_INFO("GMG: #number of iterations to solve: {}",
181-
m_iter_taken);
182-
RXMESH_INFO("GMG: final residual: {}", m_final_residual);
181+
this->m_iter_taken);
182+
RXMESH_INFO("GMG: final residual: {}", this->m_final_residual);
183183
timer.stop();
184184
gtimer.stop();
185185
time += std::max(timer.elapsed_millis(),
@@ -222,7 +222,7 @@ struct GMGSolver : public IterativeSolver<T, DenseMatrix<T>>
222222

223223
T get_final_residual()
224224
{
225-
return m_final_residual;
225+
return this->m_final_residual;
226226
}
227227

228228
virtual ~GMGSolver()

0 commit comments

Comments
 (0)