mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
Added assertion that entry was added to globalCellData_ for pack/unpack
This commit is contained in:
parent
00440ab344
commit
098bd8f9fc
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user