Skip to content
Snippets Groups Projects
Commit 7c3f2770 authored by Martin Schneider's avatar Martin Schneider
Browse files

[tests][2padaptive] Fix sequential 2p adaptivity tests

parent cbd4a705
No related branches found
No related tags found
1 merge request!905[tests][2padaptive] Fix sequential 2p adaptivity tests
......@@ -69,8 +69,7 @@ int main(int argc, char** argv)
using namespace Dumux;
try {
auto defaultParams = [] (Dune::ParameterTree& p) {GET_PROP(TTAG(ThreeDTwoPTestTypeTag), ModelDefaultParameters)::defaultParams(p);};
Parameters::init(argc, argv, defaultParams, usage);
Parameters::init(argc, argv, usage);
const auto modelType = getParam<std::string>("ModelType", "MPFAL");
......
......@@ -58,7 +58,7 @@ class Test3D2PProblem;
//////////
namespace Properties
{
NEW_TYPE_TAG(ThreeDTwoPTestTypeTag, INHERITS_FROM(SequentialModel, Test3d2pSpatialParams));
NEW_TYPE_TAG(ThreeDTwoPTestTypeTag, INHERITS_FROM(Test3d2pSpatialParams));
// Set the grid type
#if HAVE_DUNE_ALUGRID
......@@ -79,20 +79,6 @@ SET_PROP(ThreeDTwoPTestTypeTag, FluidSystem)
#if PROBLEM == 1
SET_INT_PROP(ThreeDTwoPTestTypeTag, Formulation, SequentialTwoPCommonIndices::pnSw);
#endif
// Set the spatial parameters
SET_PROP(ThreeDTwoPTestTypeTag, SpatialParams)
{
private:
using Grid = typename GET_PROP_TYPE(TypeTag, Grid);
using Scalar = typename GET_PROP_TYPE(TypeTag, Scalar);
public:
using type = Test3d2pSpatialParams<TypeTag>;
};
#if PROBLEM == 1
SET_TYPE_PROP(ThreeDTwoPTestTypeTag, EvalCflFluxFunction, EvalCflFluxCoats<TypeTag>);
#endif
......
......@@ -60,8 +60,7 @@ int main(int argc, char** argv)
using namespace Dumux;
try {
auto defaultParams = [] (Dune::ParameterTree& p) {GET_PROP(TTAG(MPFATwoPTestTypeTag), ModelDefaultParameters)::defaultParams(p);};
Parameters::init(argc, argv, defaultParams, usage);
Parameters::init(argc, argv, usage);
const auto modelType = getParam<std::string>("ModelType", "MPFAL");
......
......@@ -57,7 +57,7 @@ class MPFATwoPTestProblem;
namespace Properties
{
NEW_TYPE_TAG(MPFATwoPTestTypeTag, INHERITS_FROM(SequentialModel, Test2PSpatialParams));
NEW_TYPE_TAG(MPFATwoPTestTypeTag, INHERITS_FROM(Test2PSpatialParams));
// Set the grid type
#if HAVE_UG
......
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