Skip to content
Snippets Groups Projects
Commit 7b7035c0 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use unsigned number type for VTK connectivity field

This avoids 'implicit narrowing' errors/warnings.
parent 32257796
No related branches found
No related tags found
1 merge request!23Use only LocalView objects, no LocalIndexSet ones
Pipeline #3095 failed
...@@ -178,8 +178,7 @@ public: ...@@ -178,8 +178,7 @@ public:
else else
DUNE_THROW(Dune::IOError, "Unsupported element type '" << nE.first << "' found!"); DUNE_THROW(Dune::IOError, "Unsupported element type '" << nE.first << "' found!");
} }
std::vector<int> connectivity(connectivitySize); std::vector<unsigned int> connectivity(connectivitySize);
size_t i=0; size_t i=0;
for (const auto& element : elements(gridView, Dune::Partitions::interior)) for (const auto& element : elements(gridView, Dune::Partitions::interior))
......
...@@ -346,7 +346,7 @@ namespace Dune { ...@@ -346,7 +346,7 @@ namespace Dune {
std::vector<Dune::FieldVector<double,3> > points_; std::vector<Dune::FieldVector<double,3> > points_;
std::vector<int> cellConnectivity_; std::vector<unsigned int> cellConnectivity_;
std::vector<int> cellOffsets_; std::vector<int> cellOffsets_;
......
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