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

[NL] DOF: Avoid signed/unsigned comparison.

parent 6c33493f
No related branches found
No related tags found
No related merge requests found
...@@ -284,7 +284,7 @@ LocalToGlobalIndexMap::getNumberOfElementDOF(std::size_t const mesh_item_id) con ...@@ -284,7 +284,7 @@ LocalToGlobalIndexMap::getNumberOfElementDOF(std::size_t const mesh_item_id) con
{ {
std::size_t ndof = 0; std::size_t ndof = 0;
for (unsigned c=0; c<_rows.cols(); ++c) for (Table::Index c = 0; c < _rows.cols(); ++c)
{ {
ndof += _rows(mesh_item_id, c).size(); ndof += _rows(mesh_item_id, c).size();
} }
...@@ -296,7 +296,7 @@ std::size_t ...@@ -296,7 +296,7 @@ std::size_t
LocalToGlobalIndexMap::getNumberOfElementComponents(std::size_t const mesh_item_id) const LocalToGlobalIndexMap::getNumberOfElementComponents(std::size_t const mesh_item_id) const
{ {
std::size_t n = 0; std::size_t n = 0;
for (unsigned c=0; c<_rows.cols(); ++c) for (Table::Index c = 0; c < _rows.cols(); ++c)
{ {
if (!_rows(mesh_item_id, c).empty()) if (!_rows(mesh_item_id, c).empty())
n++; n++;
......
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