Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Aug 9, 2024
1 parent de8ccb0 commit 748f53a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/htool/hmatrix/tree_builder/tree_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ class HMatrixTreeBuilder {

void set_symmetry_for_leaves(HMatrixType &hmatrix) const {
if (m_symmetry_type != 'N') {
postorder_tree_traversal(hmatrix, [this](HMatrixType &hmatrix) {
if (hmatrix.is_leaf() and hmatrix.get_symmetry() != 'N') {
hmatrix.set_symmetry_for_leaves(m_symmetry_type);
hmatrix.set_UPLO_for_leaves(m_UPLO_type);
} else if (!hmatrix.is_leaf()) {
for (auto &child : hmatrix.get_children()) {
postorder_tree_traversal(hmatrix, [this](HMatrixType &current_hmatrix) {
if (current_hmatrix.is_leaf() and current_hmatrix.get_symmetry() != 'N') {
current_hmatrix.set_symmetry_for_leaves(m_symmetry_type);
current_hmatrix.set_UPLO_for_leaves(m_UPLO_type);
} else if (!current_hmatrix.is_leaf()) {
for (auto &child : current_hmatrix.get_children()) {
if (child->get_symmetry() != 'N') {
hmatrix.set_symmetry_for_leaves(m_symmetry_type);
hmatrix.set_UPLO_for_leaves(m_UPLO_type);
current_hmatrix.set_symmetry_for_leaves(m_symmetry_type);
current_hmatrix.set_UPLO_for_leaves(m_UPLO_type);
}
}
}
Expand Down

0 comments on commit 748f53a

Please sign in to comment.