Disable most of the file, as the base version is sufficient.

All features have been added to BlackoilAmg.hpp.
This commit is contained in:
Atgeirr Flø Rasmussen authored and Markus Blatt committed 2019-04-10 14:40:46 +02:00
1 parent 6d18c2849d
commit 3d9c776384
1 file changed
+7 -6
+7 -6
View File
@@ -38,7 +38,7 @@
namespace Opm namespace Opm
{ {
/*
template<class Operator, class Criterion, class Communication, std::size_t COMPONENT_INDEX, std::size_t VARIABLE_INDEX> template<class Operator, class Criterion, class Communication, std::size_t COMPONENT_INDEX, std::size_t VARIABLE_INDEX>
class OneComponentAggregationLevelTransferPolicyCpr class OneComponentAggregationLevelTransferPolicyCpr
: public Dune::Amg::LevelTransferPolicyCpr<Operator, typename Detail::ScalarType<Operator>::value> : public Dune::Amg::LevelTransferPolicyCpr<Operator, typename Detail::ScalarType<Operator>::value>
@@ -182,7 +182,8 @@ namespace Opm
std::shared_ptr<Communication> coarseLevelCommunication_; std::shared_ptr<Communication> coarseLevelCommunication_;
std::shared_ptr<typename CoarseOperator::matrix_type> coarseLevelMatrix_; std::shared_ptr<typename CoarseOperator::matrix_type> coarseLevelMatrix_;
}; };
*/
#if 0
namespace Detail namespace Detail
{ {
/** /**
@@ -399,7 +400,7 @@ namespace Opm
} // end namespace Detail } // end namespace Detail
#endif // if 0
/** /**
* \brief An algebraic twolevel or multigrid approach for solving blackoil (supports CPR with and without AMG) * \brief An algebraic twolevel or multigrid approach for solving blackoil (supports CPR with and without AMG)
@@ -442,13 +443,13 @@ namespace Opm
typename Detail::OneComponentCriterionType<Criterion,COMPONENT_INDEX, VARIABLE_INDEX>::value; typename Detail::OneComponentCriterionType<Criterion,COMPONENT_INDEX, VARIABLE_INDEX>::value;
using CoarseCriterion = typename Detail::ScalarType<Criterion>::value; using CoarseCriterion = typename Detail::ScalarType<Criterion>::value;
using LevelTransferPolicy = using LevelTransferPolicy =
OneComponentAggregationLevelTransferPolicyCpr<Operator, OneComponentAggregationLevelTransferPolicy<Operator,
FineCriterion, FineCriterion,
Communication, Communication,
COMPONENT_INDEX, COMPONENT_INDEX,
VARIABLE_INDEX>; VARIABLE_INDEX>;
using CoarseSolverPolicy = using CoarseSolverPolicy =
Detail::OneStepAMGCoarseSolverPolicyNoSolve<CoarseOperator, Detail::OneStepAMGCoarseSolverPolicy<CoarseOperator,
CoarseSmoother, CoarseSmoother,
CoarseCriterion, CoarseCriterion,
LevelTransferPolicy>; LevelTransferPolicy>;
@@ -489,7 +490,7 @@ namespace Opm
scaledMatrixOperator_(Detail::createOperator(fineOperator, *scaledMatrix_, comm)), scaledMatrixOperator_(Detail::createOperator(fineOperator, *scaledMatrix_, comm)),
smoother_(Detail::constructSmoother<Smoother>(*scaledMatrixOperator_, smoother_(Detail::constructSmoother<Smoother>(*scaledMatrixOperator_,
smargs, comm)), smargs, comm)),
levelTransferPolicy_(criterion, comm), levelTransferPolicy_(criterion, comm, param.cpr_pressure_aggregation_),
coarseSolverPolicy_(&param, smargs, criterion), coarseSolverPolicy_(&param, smargs, criterion),
twoLevelMethod_(*scaledMatrixOperator_, twoLevelMethod_(*scaledMatrixOperator_,
smoother_, smoother_,