Skip to content

Commit 748f53a

Browse files
fixup
1 parent de8ccb0 commit 748f53a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

include/htool/hmatrix/tree_builder/tree_builder.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,15 @@ class HMatrixTreeBuilder {
108108

109109
void set_symmetry_for_leaves(HMatrixType &hmatrix) const {
110110
if (m_symmetry_type != 'N') {
111-
postorder_tree_traversal(hmatrix, [this](HMatrixType &hmatrix) {
112-
if (hmatrix.is_leaf() and hmatrix.get_symmetry() != 'N') {
113-
hmatrix.set_symmetry_for_leaves(m_symmetry_type);
114-
hmatrix.set_UPLO_for_leaves(m_UPLO_type);
115-
} else if (!hmatrix.is_leaf()) {
116-
for (auto &child : hmatrix.get_children()) {
111+
postorder_tree_traversal(hmatrix, [this](HMatrixType &current_hmatrix) {
112+
if (current_hmatrix.is_leaf() and current_hmatrix.get_symmetry() != 'N') {
113+
current_hmatrix.set_symmetry_for_leaves(m_symmetry_type);
114+
current_hmatrix.set_UPLO_for_leaves(m_UPLO_type);
115+
} else if (!current_hmatrix.is_leaf()) {
116+
for (auto &child : current_hmatrix.get_children()) {
117117
if (child->get_symmetry() != 'N') {
118-
hmatrix.set_symmetry_for_leaves(m_symmetry_type);
119-
hmatrix.set_UPLO_for_leaves(m_UPLO_type);
118+
current_hmatrix.set_symmetry_for_leaves(m_symmetry_type);
119+
current_hmatrix.set_UPLO_for_leaves(m_UPLO_type);
120120
}
121121
}
122122
}

0 commit comments

Comments
 (0)