Skip to content
Snippets Groups Projects
Commit 0f305d05 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] Use descriptive variable names.

parent 1b21ddcf
No related branches found
No related tags found
No related merge requests found
......@@ -159,11 +159,11 @@ private:
void setInitialConditions(ProcessVariable const& variable,
int const component_id)
{
std::size_t const n = _mesh.getNNodes();
for (std::size_t i = 0; i < n; ++i)
std::size_t const n_nodes = _mesh.getNNodes();
for (std::size_t node_id = 0; node_id < n_nodes; ++node_id)
{
MeshLib::Location const l(_mesh.getID(),
MeshLib::MeshItemType::Node, i);
MeshLib::MeshItemType::Node, node_id);
auto global_index = std::abs(
_local_to_global_index_map->getGlobalIndex(l, component_id));
#ifdef USE_PETSC
......@@ -179,7 +179,7 @@ private:
global_index = 0;
#endif
_x->set(global_index,
variable.getInitialConditionValue(*_mesh.getNode(i),
variable.getInitialConditionValue(*_mesh.getNode(node_id),
component_id));
}
}
......
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