]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix hdf5 tests
authorTimo Heister <timo.heister@gmail.com>
Mon, 16 Mar 2020 22:01:41 +0000 (18:01 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 16 Mar 2020 22:01:41 +0000 (18:01 -0400)
std::vector<hsize_t> is sent to deallog in several hdf5 tests
(get_dimensions()). Re-add the operator overload.

tests/tests.h

index 08a124f546b5fff936c342b0421eb0398867e4bb..fb5daf57d12702a52692b5897a95acc6edc74590 100644 (file)
@@ -779,6 +779,14 @@ operator<<(LogStream &out, const std::vector<std::uint64_t> &v)
   return out;
 }
 
+LogStream &
+operator<<(LogStream &out, const std::vector<unsigned long long> &v)
+{
+  for (std::size_t i = 0; i < v.size(); ++i)
+    out << v[i] << (i == v.size() - 1 ? "" : " ");
+  return out;
+}
+
 LogStream &
 operator<<(LogStream &out, const std::vector<double> &v)
 {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.