Skip to content
Snippets Groups Projects
Commit 95a7e7de authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

[PCS] skip npos in creating Dirichlet BC

parent 2d6c7385
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,8 @@ void DirichletBoundaryCondition::getEssentialBCValues(
// TODO: that might be slow, but only done once
const auto g_idx =
_dof_table.getGlobalIndex(l, _variable_id, _component_id);
if (g_idx == NumLib::MeshComponentMap::nop)
continue;
// For the DDC approach (e.g. with PETSc option), the negative
// index of g_idx means that the entry by that index is a ghost one,
// which should be dropped. Especially for PETSc routines MatZeroRows
......
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