Skip to content

Commit

Permalink
Fix loop variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
mleoni-pf committed Nov 25, 2024
1 parent 38c82f7 commit c453138
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/dolfinx/io/XDMFFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void XDMFFile::read_function(const mesh::Mesh<double>& mesh, std::string name,
* retrieved values in the correct position in the function's array,
* reading values and positions from `entities_values`.
*/
for (int i = 0; i < entities_values.first.size(); ++i)
for (size_t i = 0; i < entities_values.first.size(); ++i)
{
u.x()->mutable_array()[vertex_to_dofmap[entities_values.first[i]]]
= entities_values.second[i];
Expand Down

0 comments on commit c453138

Please sign in to comment.