mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-30 11:06:55 -06:00
[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.
This commit is contained in:
parent
ec7d0f9472
commit
80056b8ef2
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user