Skip to content
Snippets Groups Projects
Commit 8b4af418 authored by Timo Koch's avatar Timo Koch
Browse files

Remove property LinearSolverPrecondBlockLevel. Provide it as optional tparam to solve.

parent ac426f91
No related branches found
No related tags found
1 merge request!738Feature/make linearsolver independent of typetag
......@@ -65,7 +65,6 @@ NEW_PROP_TAG(LocalResidual);
//! TODO: Remove this property as soon as the decoupled models are integrated
NEW_PROP_TAG(LinearSolver);
NEW_PROP_TAG(LinearSolverPreconditionerBlockLevel); //!< Block level depth for the preconditioner
////////////////////////////////////////////////
// Basic properties regarding balance equations
......@@ -147,8 +146,6 @@ NEW_PROP_TAG(NumSPhases);
NEW_PROP_TAG(NonMineralizationVtkOutputFields);
NEW_PROP_TAG(NonMineralizationVolumeVariables);
NEW_PROP_TAG(UseConstraintSolver); //!< Determines whether the constraint solver should be used#
/////////////////////////////////////////////////////////////
// non-isothermal porous medium flow models
/////////////////////////////////////////////////////////////
......
......@@ -59,7 +59,7 @@ SET_BOOL_PROP(FiniteVolumeModel, EnableGridFluxVariablesCache, false);
//! Boundary types at a single degree of freedom
SET_TYPE_PROP(FiniteVolumeModel, BoundaryTypes, BoundaryTypes<GET_PROP_VALUE(TypeTag, NumEq)>);
// TODO: bundle SolutionVector, JacobianMatrix and LinearSolverPreconditionerBlockLevel
// TODO: bundle SolutionVector, JacobianMatrix
// in LinearAlgebra traits
//! The type of a solution for the whole grid at a fixed time TODO: move to LinearAlgebra traits
......@@ -76,11 +76,6 @@ public:
using type = typename Dune::BCRSMatrix<MatrixBlock>;
};
//! set the block level to 1, suitable for e.g. a simple Dune::BCRSMatrix.
//! Set this to more than one if the matrix to solve is nested multiple times
//! e.g. for Dune::MultiTypeBlockMatrix'es. TODO: move to LinearAlgebra traits
SET_INT_PROP(FiniteVolumeModel, LinearSolverPreconditionerBlockLevel, 1);
} // namespace Properties
} // namespace Dumux
......
......@@ -208,7 +208,7 @@ public:
}
};
// TODO: bundle SolutionVector, JacobianMatrix and LinearSolverPreconditionerBlockLevel
// TODO: bundle SolutionVector, JacobianMatrix
// in LinearAlgebra traits
//! The type of a solution for the whole grid at a fixed time TODO: move to LinearAlgebra traits
......@@ -263,9 +263,6 @@ public:
using type = typename Dune::MultiTypeBlockMatrix<RowCellCenter, RowFace>;
};
// set the block level to 2 (nested multiple times) TODO: move to LinearAlgebra traits
SET_INT_PROP(StaggeredModel, LinearSolverPreconditionerBlockLevel, 2);
} // namespace Properties
} // namespace Dumux
......
......@@ -104,13 +104,9 @@ SET_PROP(SequentialModel, DiscretizationMethod)
static const DiscretizationMethods value = DiscretizationMethods::CCTpfa;
};
//!< Type of the jacobian matrix needed for compatibility with implicit models for the amg backend
//! Type of the jacobian matrix needed for compatibility with implicit models for the amg backend
SET_TYPE_PROP(SequentialModel, JacobianMatrix, typename GET_PROP_TYPE(TypeTag, PressureCoefficientMatrix));
//!< Block level on which the preconditioner is supposed to work.
SET_INT_PROP(SequentialModel, LinearSolverPreconditionerBlockLevel, 1);
//! Use the leaf grid view if not defined otherwise
SET_PROP(SequentialModel, GridView)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment