From 38cfd3f10744af0354a865e9e66a111cd7ca8af6 Mon Sep 17 00:00:00 2001 From: ahmed Date: Thu, 5 Sep 2024 14:03:25 -0400 Subject: [PATCH] fix --- include/rxmesh/matrix/nd_permute.cuh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/rxmesh/matrix/nd_permute.cuh b/include/rxmesh/matrix/nd_permute.cuh index 38df72aa..3ce5924b 100644 --- a/include/rxmesh/matrix/nd_permute.cuh +++ b/include/rxmesh/matrix/nd_permute.cuh @@ -37,14 +37,14 @@ struct Graph * @brief return the weight between x and y. If there is no edge between * them return the default weight */ - T get_weight(T x, T y, T default = -1) const + T get_weight(T x, T y, T default_val = -1) const { for (T i = xadj[x]; i < xadj[x + 1]; ++i) { if (adjncy[i] == y) { return weights[i]; } } - return default; + return default_val; } void print() const @@ -960,7 +960,7 @@ void permute_separators(RXMeshStatic& rx, auto context = rx.get_context(); rx.for_each_vertex(DEVICE, [=] __device__(const VertexHandle& vh) { - d_permute[context.linear_id(vh)] += d_count[v_index(vh)]; + d_permute[context.linear_id(vh)] += d_count[v_index(vh)]; });