mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
working refactoring
This commit is contained in:
committed by
Atgeirr Flø Rasmussen
parent
abee2f9f81
commit
18b03f3546
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
This file is part of the Open Porous Media project (OPM).
|
||||
|
||||
OPM is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OPM is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "config.h"
|
||||
#include <opm/material/common/ResetLocale.hpp>
|
||||
#include <opm/simulators/flow/SimulatorFullyImplicitBlackoilEbos.hpp>
|
||||
#include <opm/simulators/flow/Main.hpp>
|
||||
// modifications from standard
|
||||
#include <opm/models/blackoil/blackoillocalresidualtpfa.hh>
|
||||
#include <ebos/eclfluxmoduletpfa.hh>
|
||||
namespace Opm {
|
||||
namespace Properties {
|
||||
namespace TTag {
|
||||
struct EclFlowProblemTPFA {
|
||||
using InheritsFrom = std::tuple<EclFlowProblem>;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
namespace Opm {
|
||||
namespace Properties {
|
||||
template<class TypeTag>
|
||||
struct LocalLinearizerSplice<TypeTag, TTag::EclFlowProblemTPFA> {
|
||||
using type = TTag::AutoDiffLocalLinearizer;
|
||||
};
|
||||
}
|
||||
}
|
||||
namespace Opm {
|
||||
namespace Properties {
|
||||
template<class TypeTag>
|
||||
struct LocalResidual<TypeTag, TTag::EclFlowProblemTPFA> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
|
||||
}
|
||||
}
|
||||
namespace Opm{
|
||||
template <class TypeTag>
|
||||
struct EclTransFluxModuleTPFA
|
||||
{
|
||||
typedef EclTransIntensiveQuantities<TypeTag> FluxIntensiveQuantities;
|
||||
typedef EclTransExtensiveQuantitiesTPFA<TypeTag> FluxExtensiveQuantities;
|
||||
typedef EclTransBaseProblem<TypeTag> FluxBaseProblem;
|
||||
|
||||
/*!
|
||||
* \brief Register all run-time parameters for the flux module.
|
||||
*/
|
||||
static void registerParameters()
|
||||
{ }
|
||||
};
|
||||
}
|
||||
namespace Opm {
|
||||
namespace Properties {
|
||||
|
||||
template<class TypeTag>
|
||||
struct FluxModule<TypeTag, TTag::EclFlowProblemTPFA> {
|
||||
using type = EclTransFluxModuleTPFA<TypeTag>;
|
||||
};
|
||||
}
|
||||
}
|
||||
// namespace Opm {
|
||||
// namespace Properties {
|
||||
// template<class TypeTag>
|
||||
// struct Linearizer<TypeTag, TTag::EclFlowProblemTPFA> {
|
||||
// using type = TTag::AutoDiffLocalLinearizer;
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// namespace Opm {
|
||||
// namespace Properties {
|
||||
// template<class TypeTag>
|
||||
// struct FluxModule<TypeTag, TTag::EclFlowProblemTPFA> {
|
||||
// using type = TTag::EclTransFluxMudule;
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using TypeTag = Opm::Properties::TTag::EclFlowProblemTPFA;
|
||||
auto mainObject = Opm::Main(argc, argv);
|
||||
return mainObject.runStatic<TypeTag>();
|
||||
}
|
||||
Reference in New Issue
Block a user