Skip to content
Snippets Groups Projects
Commit 9b9f9ff5 authored by Emmanuel Labourasse's avatar Emmanuel Labourasse
Browse files

bug partially fixed

parent 6db7171c
No related branches found
No related tags found
No related merge requests found
...@@ -456,6 +456,17 @@ HeatDiamondScheme<Dimension>::HeatDiamondScheme( ...@@ -456,6 +456,17 @@ HeatDiamondScheme<Dimension>::HeatDiamondScheme(
} }
} }
} }
} else {
const auto& primal_face_to_cell = face_to_cell_matrix[face_id];
const double beta_l = 1. / Dimension * alpha_l[face_id] * mes_l[face_id];
Assert(primal_face_to_cell.size() == 1, "Wrong number of cells for a boundary face");
for (size_t i_cell = 0; i_cell < primal_face_to_cell.size(); ++i_cell) {
const CellId cell_id1 = primal_face_to_cell[i_cell];
S(cell_dof_number[cell_id1], cell_dof_number[cell_id1]) += beta_l;
S(cell_dof_number[cell_id1], face_dof_number[face_id]) -= beta_l;
S(face_dof_number[face_id], face_dof_number[face_id]) += beta_l;
S(face_dof_number[face_id], cell_dof_number[cell_id1]) -= beta_l;
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment