mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Minor cleanup.
This commit is contained in:
parent
3d9c776384
commit
0e5a5c5266
@ -89,7 +89,7 @@ namespace Opm
|
|||||||
using CouplingMetric = Opm::Amg::Element<pressureEqnIndex,pressureVarIndex>;
|
using CouplingMetric = Opm::Amg::Element<pressureEqnIndex,pressureVarIndex>;
|
||||||
using CritBase = Dune::Amg::SymmetricCriterion<Matrix, CouplingMetric>;
|
using CritBase = Dune::Amg::SymmetricCriterion<Matrix, CouplingMetric>;
|
||||||
using Criterion = Dune::Amg::CoarsenCriterion<CritBase>;
|
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:
|
public:
|
||||||
@ -232,8 +232,8 @@ namespace Opm
|
|||||||
//criterion.setGamma(1); // //1 V cycle 2 WW
|
//criterion.setGamma(1); // //1 V cycle 2 WW
|
||||||
|
|
||||||
// Since DUNE 2.2 we also need to pass the smoother args instead of steps directly
|
// Since DUNE 2.2 we also need to pass the smoother args instead of steps directly
|
||||||
typedef typename BLACKOILAMG::Smoother Smoother;
|
typedef typename BlackoilAmgType::Smoother Smoother;
|
||||||
typedef typename BLACKOILAMG::Smoother Smoother;
|
typedef typename BlackoilAmgType::Smoother Smoother;
|
||||||
typedef typename Dune::Amg::SmootherTraits<Smoother>::Arguments SmootherArgs;
|
typedef typename Dune::Amg::SmootherTraits<Smoother>::Arguments SmootherArgs;
|
||||||
SmootherArgs smootherArgs;
|
SmootherArgs smootherArgs;
|
||||||
smootherArgs.iterations = 1;
|
smootherArgs.iterations = 1;
|
||||||
@ -263,7 +263,7 @@ namespace Opm
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( update_preconditioner or (amg_== 0) ){
|
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{
|
}else{
|
||||||
if(this->parameters_.cpr_solver_verbose_){
|
if(this->parameters_.cpr_solver_verbose_){
|
||||||
std::cout << " Only update amg solver " << std::endl;
|
std::cout << " Only update amg solver " << std::endl;
|
||||||
@ -340,7 +340,7 @@ namespace Opm
|
|||||||
#endif
|
#endif
|
||||||
std::unique_ptr< MatrixAdapter > opA_;
|
std::unique_ptr< MatrixAdapter > opA_;
|
||||||
std::unique_ptr< OperatorSerial > opASerial_;
|
std::unique_ptr< OperatorSerial > opASerial_;
|
||||||
std::unique_ptr< BLACKOILAMG > amg_;
|
std::unique_ptr< BlackoilAmgType > amg_;
|
||||||
SPPointer sp_;
|
SPPointer sp_;
|
||||||
std::shared_ptr< Dune::BiCGSTABSolver<Vector> > linsolve_;
|
std::shared_ptr< Dune::BiCGSTABSolver<Vector> > linsolve_;
|
||||||
//std::shared_ptr< Dune::LinearOperator<Vector,Vector> > op_;
|
//std::shared_ptr< Dune::LinearOperator<Vector,Vector> > op_;
|
||||||
|
Loading…
Reference in New Issue
Block a user