mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-24 18:20:22 -06:00
Store the boost::any of ParallelIstlInformation by value.
During the constructor the underlying object only holds smart pointers and an empty vector. The FullyImplicitBlackoilSolver obtains a reference to it from the NewtInterationInterface instances. Therefore copying boost::any and storing it by value should be cheap and safe.
This commit is contained in:
parent
d2b3e52472
commit
70fb0e7b79
@ -109,7 +109,7 @@ namespace Opm
|
||||
unsigned int cpr_ilu_n_;
|
||||
bool cpr_use_amg_;
|
||||
bool cpr_use_bicgstab_;
|
||||
const boost::any& parallelInformation_;
|
||||
boost::any parallelInformation_;
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
@ -61,7 +61,7 @@ namespace Opm
|
||||
private:
|
||||
std::unique_ptr<LinearSolverInterface> linsolver_;
|
||||
mutable int iterations_;
|
||||
const boost::any& parallelInformation_;
|
||||
boost::any parallelInformation_;
|
||||
};
|
||||
|
||||
} // namespace Opm
|
||||
|
Loading…
Reference in New Issue
Block a user