Skip to content
Snippets Groups Projects
Commit 5c09e5cb authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Lars Bilke
Browse files

[PL/BC] Exclude ghost nodes from Dirichlet BCs

On partition interfaces the BCs must be set on the nodes
"owning" partition and not on ghost nodes.
parent 811a3425
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,11 @@ void PhaseFieldIrreversibleDamageOracleBoundaryCondition::preTimestep(
const auto g_idx =
_dof_table.getGlobalIndex(l, _variable_id, _component_id);
if (g_idx < 0)
{
continue;
}
if ((*x[process_id])[g_idx] <= irreversibleDamage)
{
_bc_values.ids.emplace_back(g_idx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment