mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-30 13:03:49 -06:00
EclipseSolution: make sure that attached keywords are not accidentally deleted
This commit is contained in:
parent
d3d3e05d3a
commit
d852cc0d03
@ -255,7 +255,8 @@ public:
|
|||||||
const std::string &name = bufIt->first;
|
const std::string &name = bufIt->first;
|
||||||
const ScalarBuffer &buffer = *bufIt->second;
|
const ScalarBuffer &buffer = *bufIt->second;
|
||||||
|
|
||||||
ErtKeyword<float> bufKeyword(name, buffer);
|
std::shared_ptr<const ErtKeyword<float>>
|
||||||
|
bufKeyword(new ErtKeyword<float>(name, buffer));
|
||||||
solution.add(bufKeyword);
|
solution.add(bufKeyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user