clean-up in flow_bo_diffusion.cpp and flow_co2.cpp

This commit is contained in:
Tor Harald Sandve 2021-01-21 12:06:26 +01:00
parent 361de71c96
commit 5deb410bd5
3 changed files with 6 additions and 7 deletions

View File

@ -339,13 +339,13 @@ opm_add_test(flow_onephase
DEPENDS opmsimulators
LIBRARIES opmsimulators)
opm_add_test(flow_co2
opm_add_test(flow_co2_diffusion
ONLY_COMPILE
DEFAULT_ENABLE_IF ${FLOW_VARIANTS_DEFAULT_ENABLE_IF}
SOURCES
flow/flow_co2_diffusion.cpp
$<TARGET_OBJECTS:moduleVersion>
EXE_NAME flow_co2
EXE_NAME flow_co2_diffusion
DEPENDS opmsimulators
LIBRARIES opmsimulators)

View File

@ -16,18 +16,17 @@
*/
#include "config.h"
#include <opm/simulators/flow/Main.hpp>
#include <opm/models/blackoil/blackoiltwophaseindices.hh>
namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowCo2Problem {
struct EclFlowDiffusionProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
};
}
template<class TypeTag>
struct EnableDiffusion<TypeTag, TTag::EclFlowProblem> {
struct EnableDiffusion<TypeTag, TTag::EclFlowDiffusionProblem> {
static constexpr bool value = true;
};
@ -38,7 +37,7 @@ struct EnableDiffusion<TypeTag, TTag::EclFlowProblem> {
// ----------------- Main program -----------------
int main(int argc, char** argv)
{
using TypeTag = Opm::Properties::TTag::EclFlowCo2Problem;
using TypeTag = Opm::Properties::TTag::EclFlowDiffusionProblem;
auto mainObject = Opm::Main(argc, argv);
return mainObject.runStatic<TypeTag>();
}

View File

@ -27,7 +27,7 @@ struct EclFlowCo2Problem {
}
template<class TypeTag>
struct EnableDiffusion<TypeTag, TTag::EclFlowProblem> {
struct EnableDiffusion<TypeTag, TTag::EclFlowCo2Problem> {
static constexpr bool value = true;
};