From 324001a33c3c8a2f0f84ab4de088fdb9c9d96bcc Mon Sep 17 00:00:00 2001 From: Phil Tooley Date: Tue, 11 Dec 2018 14:22:44 +0000 Subject: [PATCH] finalise xdmf support closes #1 --- src/hdfwriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hdfwriter.cpp b/src/hdfwriter.cpp index f18f7c5..efad409 100644 --- a/src/hdfwriter.cpp +++ b/src/hdfwriter.cpp @@ -119,7 +119,7 @@ void HDFWriter::write_map(const Map& map, const std::string& groupname) auto corners = map.get_dmda_local_extents(); std::vector offset(corners.first.cbegin(), corners.first.cend()); std::vector chunksize(corners.second.cbegin(), corners.second.cend()); - Vec_unique dimdata = map.get_dim_data_dmda_blocked(0); + Vec_unique dimdata = map.get_dim_data_dmda_blocked(idx); std::ostringstream ofs; std::copy(offset.cbegin(), offset.cend(), infix_ostream_iterator(ofs, ", "));