Skip to content

Commit

Permalink
ugly workaround to fix dgswem, re #39
Browse files Browse the repository at this point in the history
  • Loading branch information
gentryx committed May 17, 2016
1 parent 0341fee commit a2d8646
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/storage/unstructuredgrid.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ class UnstructuredGrid : public GridBase<ELEMENT_TYPE, 1, WEIGHT_TYPE>
const ELEMENT_TYPE& defaultElement = ELEMENT_TYPE(),
const ELEMENT_TYPE& edgeElement = ELEMENT_TYPE(),
const Coord<DIM>& /* topological dimension is irrelevant here */ = Coord<DIM>()) :
elements(box.dimensions.x(), defaultElement),
// fixme: dirty hack, we're allocating way too many cells. trim this down!
elements(box.origin.x() + box.dimensions.x(), defaultElement),
edgeElement(edgeElement),
dimension(box.dimensions)
dimension(box.origin + box.dimensions)
{
for (std::size_t i = 0; i < MATRICES; ++i) {
matrices[i] =
SellCSigmaSparseMatrixContainer<WEIGHT_TYPE, C, SIGMA>(dimension.x());
SellCSigmaSparseMatrixContainer<WEIGHT_TYPE, C, SIGMA>(box.origin.x() + dimension.x());
}
}

Expand Down

0 comments on commit a2d8646

Please sign in to comment.