Minor cleanup.

This commit is contained in:
Atgeirr Flø Rasmussen 2019-04-05 18:23:09 +02:00 committed by Markus Blatt
parent 3d9c776384
commit 0e5a5c5266

View File

@ -89,7 +89,7 @@ namespace Opm
using CouplingMetric = Opm::Amg::Element<pressureEqnIndex,pressureVarIndex>;
using CritBase = Dune::Amg::SymmetricCriterion<Matrix, CouplingMetric>;
using Criterion = Dune::Amg::CoarsenCriterion<CritBase>;
typedef BlackoilAmgCpr<MatrixAdapter,CprSmootherFine, CprSmootherCoarse, Criterion, POrComm, pressureEqnIndex, pressureVarIndex> BLACKOILAMG;
typedef BlackoilAmgCpr<MatrixAdapter,CprSmootherFine, CprSmootherCoarse, Criterion, POrComm, pressureEqnIndex, pressureVarIndex> BlackoilAmgType;
public:
@ -232,8 +232,8 @@ namespace Opm
//criterion.setGamma(1); // //1 V cycle 2 WW
// Since DUNE 2.2 we also need to pass the smoother args instead of steps directly
typedef typename BLACKOILAMG::Smoother Smoother;
typedef typename BLACKOILAMG::Smoother Smoother;
typedef typename BlackoilAmgType::Smoother Smoother;
typedef typename BlackoilAmgType::Smoother Smoother;
typedef typename Dune::Amg::SmootherTraits<Smoother>::Arguments SmootherArgs;
SmootherArgs smootherArgs;
smootherArgs.iterations = 1;
@ -263,7 +263,7 @@ namespace Opm
}
if( update_preconditioner or (amg_== 0) ){
amg_.reset( new BLACKOILAMG( params, this->weights_, opARef, criterion, smootherArgs, comm ) );
amg_.reset( new BlackoilAmgType( params, this->weights_, opARef, criterion, smootherArgs, comm ) );
}else{
if(this->parameters_.cpr_solver_verbose_){
std::cout << " Only update amg solver " << std::endl;
@ -340,7 +340,7 @@ namespace Opm
#endif
std::unique_ptr< MatrixAdapter > opA_;
std::unique_ptr< OperatorSerial > opASerial_;
std::unique_ptr< BLACKOILAMG > amg_;
std::unique_ptr< BlackoilAmgType > amg_;
SPPointer sp_;
std::shared_ptr< Dune::BiCGSTABSolver<Vector> > linsolve_;
//std::shared_ptr< Dune::LinearOperator<Vector,Vector> > op_;