File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
include/htool/hmatrix/tree_builder Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,15 @@ class HMatrixTreeBuilder {
108
108
109
109
void set_symmetry_for_leaves (HMatrixType &hmatrix) const {
110
110
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 ¤t_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 ()) {
117
117
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);
120
120
}
121
121
}
122
122
}
You can’t perform that action at this time.
0 commit comments