Skip to content

Commit 0627f74

Browse files
author
Andrea Mola
committed
fixed small bug in b coefficient computation with double nodes
1 parent 38ccc1d commit 0627f74

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

source/bem_problem.cc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,8 +1534,14 @@ BEMProblem<dim>::compute_hypersingular_free_coeffs()
15341534
P);
15351535
Tensor<1, dim> b =
15361536
singular_kernel_integrator.evaluate_free_term_b();
1537-
for (unsigned int d = 0; d < dim; ++d)
1538-
b_i[d][global_id] += b[d];
1537+
std::set<types::global_dof_index> doubles =
1538+
double_nodes_set[global_id];
1539+
for (std::set<types::global_dof_index>::iterator it =
1540+
doubles.begin();
1541+
it != doubles.end();
1542+
it++)
1543+
for (unsigned int d = 0; d < dim; ++d)
1544+
b_i[d][*it] += b[d];
15391545
}
15401546
}
15411547
}

0 commit comments

Comments
 (0)