Skip to content
Permalink
Browse files

clear buffer before inserting new data, otherwise it's going to be ap…

…pended behind old data
  • Loading branch information...
gentryx committed Jun 28, 2019
1 parent 8c125d8 commit 0ea72d1d132f141632e1106d6a959cee28b970d9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/libgeodecomp/storage/grid.h
@@ -407,6 +407,7 @@ class Grid : public GridBase<CELL_TYPE, TOPOLOGY::DIM>
boost::archive::binary_iarchive archive(stream);
#endif

// fixme: why no streak fusion from reorderinggrid?
for (ITER1 i = begin; i != end; ++i) {
Coord<DIM> c = i->origin;
CELL_TYPE *cell = &(*this)[c];

0 comments on commit 0ea72d1

Please sign in to comment.
You can’t perform that action at this time.