Merge pull request #418 from atgeirr/fix-flow-parallel

Pass parallel info to NewtonIteration... classes.
This commit is contained in:
Atgeirr Flø Rasmussen 2015-07-16 15:04:30 +02:00
commit b7764601f8

View File

@ -347,9 +347,9 @@ try
// Solver for Newton iterations.
std::unique_ptr<NewtonIterationBlackoilInterface> fis_solver;
if (param.getDefault("use_interleaved", false)) {
fis_solver.reset(new NewtonIterationBlackoilInterleaved(param));
fis_solver.reset(new NewtonIterationBlackoilInterleaved(param, parallel_information));
} else if (param.getDefault("use_cpr", true)) {
fis_solver.reset(new NewtonIterationBlackoilCPR(param));
fis_solver.reset(new NewtonIterationBlackoilCPR(param, parallel_information));
} else {
fis_solver.reset(new NewtonIterationBlackoilSimple(param, parallel_information));
}