Added assertion that entry was added to globalCellData_ for pack/unpack

This commit is contained in:
Markus Blatt 2016-11-16 21:20:14 +01:00
parent 00440ab344
commit 098bd8f9fc

View File

@ -380,9 +380,11 @@ namespace Opm
const std::string& key = pair.first; const std::string& key = pair.first;
std::size_t container_size = globalState_.numCells() * std::size_t container_size = globalState_.numCells() *
pair.second.data.size() / localState_.numCells(); pair.second.data.size() / localState_.numCells();
globalCellData_.insert(key, pair.second.dim, auto ret = globalCellData_.insert(key, pair.second.dim,
std::vector<double>(container_size), std::vector<double>(container_size),
pair.second.target); pair.second.target);
assert(ret.second);
DUNE_UNUSED_PARAMETER(ret.second); //dummy op to prevent warning with -DNDEBUG
} }
MessageBufferType buffer; MessageBufferType buffer;