Skip to content
Snippets Groups Projects
Commit 56ba6e4b authored by Tom Fischer's avatar Tom Fischer
Browse files

[PL/BC] Exec. pos.setNodeID() only when necessary.

parent 0223f5ac
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,6 @@ void getEssentialBCValuesLocal( ...@@ -76,7 +76,6 @@ void getEssentialBCValuesLocal(
for (auto const* const node : nodes_in_bc_mesh) for (auto const* const node : nodes_in_bc_mesh)
{ {
auto const id = node->getID(); auto const id = node->getID();
pos.setNodeID(node->getID());
// TODO: that might be slow, but only done once // TODO: that might be slow, but only done once
auto const global_index = dof_table_boundary.getGlobalIndex( auto const global_index = dof_table_boundary.getGlobalIndex(
{bc_mesh.getID(), MeshLib::MeshItemType::Node, id}, variable_id, {bc_mesh.getID(), MeshLib::MeshItemType::Node, id}, variable_id,
...@@ -94,6 +93,7 @@ void getEssentialBCValuesLocal( ...@@ -94,6 +93,7 @@ void getEssentialBCValuesLocal(
// applied. // applied.
if (global_index >= 0) if (global_index >= 0)
{ {
pos.setNodeID(id);
bc_values.ids.emplace_back(global_index); bc_values.ids.emplace_back(global_index);
bc_values.values.emplace_back(parameter(t, pos).front()); bc_values.values.emplace_back(parameter(t, pos).front());
} }
......
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