Fixed warnings

This commit is contained in:
babrodtk 2016-09-06 07:50:02 +02:00
parent 273c99b36f
commit 929cc619f6

View File

@ -466,8 +466,8 @@ namespace Opm
double linsolver_prolongate_factor) double linsolver_prolongate_factor)
{ {
// Solve with AMG solver. // Solve with AMG solver.
typedef Dune::MatrixAdapter<typename O::matrix_type, Vector, Vector> Operator; typedef Dune::MatrixAdapter<typename O::matrix_type, Vector, Vector> AMGOperator;
Operator sOpA(opA.getmat()); AMGOperator sOpA(opA.getmat());
#if FIRST_DIAGONAL #if FIRST_DIAGONAL
typedef Dune::Amg::FirstDiagonal CouplingMetric; typedef Dune::Amg::FirstDiagonal CouplingMetric;
@ -482,7 +482,7 @@ namespace Opm
#endif #endif
typedef Dune::Amg::CoarsenCriterion<CriterionBase> Criterion; typedef Dune::Amg::CoarsenCriterion<CriterionBase> Criterion;
typedef Dune::Amg::FastAMG<Operator,Vector> Precond; typedef Dune::Amg::FastAMG<AMGOperator, Vector> Precond;
// Construct preconditioner. // Construct preconditioner.
Criterion criterion; Criterion criterion;