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:
Markus Blatt 2015-02-12 14:04:53 +01:00
parent d2b3e52472
commit 70fb0e7b79
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -61,7 +61,7 @@ namespace Opm
private:
std::unique_ptr<LinearSolverInterface> linsolver_;
mutable int iterations_;
const boost::any& parallelInformation_;
boost::any parallelInformation_;
};
} // namespace Opm