diff --git a/opm/simulators/utils/ParallelRestart.cpp b/opm/simulators/utils/ParallelRestart.cpp index a15f82947..01eb59f68 100644 --- a/opm/simulators/utils/ParallelRestart.cpp +++ b/opm/simulators/utils/ParallelRestart.cpp @@ -3408,7 +3408,7 @@ void unpack(std::string& str, std::vector& buffer, int& position, unpack(length, buffer, position, comm); std::vector cStr(length, '\0'); unpack(cStr.data(), length, buffer, position, comm); - assert(str.empty()); + str.clear(); str.append(cStr.data()); }