From 80056b8ef22b2f16460ca43e64244c43a4836510 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 30 Apr 2015 14:09:24 +0200 Subject: [PATCH] [bugfix] Pass parallel information to AMG preconditioner within CPR. Previously only passed the parallel information to the ILU preconditioner, but of course needs this information to set up the communication, too. With this commit we pass the parallel information object to AMG's constructor. --- opm/autodiff/CPRPreconditioner.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/CPRPreconditioner.hpp b/opm/autodiff/CPRPreconditioner.hpp index 72c16656f..335694ab6 100644 --- a/opm/autodiff/CPRPreconditioner.hpp +++ b/opm/autodiff/CPRPreconditioner.hpp @@ -564,7 +564,7 @@ createEllipticPreconditionerPointer(const M& Ae, double relax, smootherArgs.iterations = 1; smootherArgs.relaxationFactor = param_.cpr_relax_; - amg_ = std::unique_ptr< AMG > (new AMG(*opAe_, criterion, smootherArgs )); + amg_ = std::unique_ptr< AMG > (new AMG(*opAe_, criterion, smootherArgs, comm )); } else {