mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
switch auxiliary modules from std::shared_ptr to raw pointers
lifetime management of these objects by shared pointers is not always feasible; at least it is not always doable without awful hacks.
This commit is contained in:
parent
cd725aeb8a
commit
a395a6d6ce
@ -686,7 +686,7 @@ protected:
|
|||||||
wellIt = wells_.begin();
|
wellIt = wells_.begin();
|
||||||
for (; wellIt != wellEndIt; ++wellIt) {
|
for (; wellIt != wellEndIt; ++wellIt) {
|
||||||
(*wellIt)->endSpec();
|
(*wellIt)->endSpec();
|
||||||
model.addAuxiliaryModule(*wellIt);
|
model.addAuxiliaryModule(wellIt->get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user