Skip to content
Snippets Groups Projects
Commit 4ed7dac0 authored by Axelle Drouard's avatar Axelle Drouard
Browse files

Add corners to the second member for Neumann boundary conditions

parent 2f338e16
Branches
No related tags found
No related merge requests found
...@@ -615,9 +615,13 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand ...@@ -615,9 +615,13 @@ class ScalarNodalSchemeHandler::ScalarNodalScheme : public ScalarNodalSchemeHand
} }
} else if (node_is_corner[node_id]) { } else if (node_is_corner[node_id]) {
const auto& node_to_face = node_to_face_matrix[node_id]; const auto& node_to_face = node_to_face_matrix[node_id];
const CellId cell_id = node_to_cell[0];
double sum_mes_l = 0;
for (size_t i_face = 0; i_face < node_to_face.size(); ++i_face) { for (size_t i_face = 0; i_face < node_to_face.size(); ++i_face) {
FaceId face_id = node_to_face[i_face]; FaceId face_id = node_to_face[i_face];
sum_mes_l += mes_l[face_id];
} }
b[cell_id] += 0.5 * node_boundary_values[node_id] * sum_mes_l;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment