diff --git a/dune/fufem/hdf5/frombuffer.hh b/dune/fufem/hdf5/frombuffer.hh index 208e06d759fd18796443c85d654b4fbf4a3a4f4e..8a7ea2654ca14197a590f1ceb6e4a6f4a4c81c7c 100644 --- a/dune/fufem/hdf5/frombuffer.hh +++ b/dune/fufem/hdf5/frombuffer.hh @@ -54,6 +54,14 @@ void fromBuffer(std::vector<ctype> const &buffer, std::array<T, 1> dimensions, localVector[0] = *(it++); } +template <typename ctype, typename T> +void fromBuffer(std::vector<ctype> const &buffer, std::array<T, 1> dimensions, + std::vector<ctype> &data) { + assert(buffer.size() == dimensions[0]); + + data = buffer; +} + template <typename ctype, typename T> void fromBuffer(std::vector<ctype> const &buffer, std::array<T, 0> dimensions, ctype &data) {