changed: remove BEGIN_PROPERTIES/END_PROPERTIES macro usage

This commit is contained in:
Arne Morten Kvarving
2020-08-21 13:42:08 +02:00
parent e8bf79d774
commit 70908d9017
35 changed files with 88 additions and 91 deletions

View File

@@ -41,7 +41,7 @@ template <class TypeTag>
class EbosProblem; class EbosProblem;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem, FlowModelParameters)); NEW_TYPE_TAG(EbosTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem, FlowModelParameters));
@@ -109,7 +109,7 @@ SET_INT_PROP(EbosTypeTag, ThreadsPerProcess, 2);
// smallest time step size is reached. // smallest time step size is reached.
SET_BOOL_PROP(EbosTypeTag, ContinueOnConvergenceError, true); SET_BOOL_PROP(EbosTypeTag, ContinueOnConvergenceError, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {
template <class TypeTag> template <class TypeTag>

View File

@@ -50,7 +50,8 @@ public:
}; };
} }
BEGIN_PROPERTIES
namespace Opm::Properties {
NEW_TYPE_TAG(EbosAltIdxTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosAltIdxTypeTag, INHERITS_FROM(EbosTypeTag));
@@ -63,7 +64,7 @@ public:
typedef Opm::BlackOilFluidSystem<Scalar, Opm::EclAlternativeBlackOilIndexTraits> type; typedef Opm::BlackOilFluidSystem<Scalar, Opm::EclAlternativeBlackOilIndexTraits> type;
}; };
END_PROPERTIES } // namespace Opm::Properties
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View File

@@ -30,14 +30,14 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosBrineTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosBrineTypeTag, INHERITS_FROM(EbosTypeTag));
// enable the brine extension of the black oil model // enable the brine extension of the black oil model
SET_BOOL_PROP(EbosBrineTypeTag, EnableBrine, true); SET_BOOL_PROP(EbosBrineTypeTag, EnableBrine, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -30,14 +30,14 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosFoamTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosFoamTypeTag, INHERITS_FROM(EbosTypeTag));
// enable the foam extension of the black oil model // enable the foam extension of the black oil model
SET_BOOL_PROP(EbosFoamTypeTag, EnableFoam, true); SET_BOOL_PROP(EbosFoamTypeTag, EnableFoam, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -30,7 +30,7 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosGasOilTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosGasOilTypeTag, INHERITS_FROM(EbosTypeTag));
@@ -53,7 +53,7 @@ public:
/*disabledCompIdx=*/FluidSystem::waterCompIdx> type; /*disabledCompIdx=*/FluidSystem::waterCompIdx> type;
}; };
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -30,7 +30,7 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosOilWaterTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosOilWaterTypeTag, INHERITS_FROM(EbosTypeTag));
@@ -53,7 +53,7 @@ public:
/*disabledCompIdx=*/FluidSystem::gasCompIdx> type; /*disabledCompIdx=*/FluidSystem::gasCompIdx> type;
}; };
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -29,7 +29,7 @@
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosOilWaterPolymerTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosOilWaterPolymerTypeTag, INHERITS_FROM(EbosTypeTag));
@@ -55,7 +55,7 @@ public:
/*disabledCompIdx=*/FluidSystem::gasCompIdx> type; /*disabledCompIdx=*/FluidSystem::gasCompIdx> type;
}; };
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -31,11 +31,11 @@
#include <opm/models/utils/start.hh> #include <opm/models/utils/start.hh>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosPlainTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem)); NEW_TYPE_TAG(EbosPlainTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem));
END_PROPERTIES } // namespace Opm::Properties
int main(int argc, char **argv) int main(int argc, char **argv)
{ {

View File

@@ -30,14 +30,14 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosPolymerTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosPolymerTypeTag, INHERITS_FROM(EbosTypeTag));
// enable the polymer extension of the black oil model // enable the polymer extension of the black oil model
SET_BOOL_PROP(EbosPolymerTypeTag, EnablePolymer, true); SET_BOOL_PROP(EbosPolymerTypeTag, EnablePolymer, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -30,14 +30,14 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosSolventTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosSolventTypeTag, INHERITS_FROM(EbosTypeTag));
// enable the solvent extension of the black oil model // enable the solvent extension of the black oil model
SET_BOOL_PROP(EbosSolventTypeTag, EnableSolvent, true); SET_BOOL_PROP(EbosSolventTypeTag, EnableSolvent, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -30,14 +30,14 @@
#include "ebos.hh" #include "ebos.hh"
#include "startEbos.hh" #include "startEbos.hh"
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EbosThermalTypeTag, INHERITS_FROM(EbosTypeTag)); NEW_TYPE_TAG(EbosThermalTypeTag, INHERITS_FROM(EbosTypeTag));
// enable the energy extension of the black oil model // enable the energy extension of the black oil model
SET_BOOL_PROP(EbosThermalTypeTag, EnableEnergy, true); SET_BOOL_PROP(EbosThermalTypeTag, EnableEnergy, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -40,7 +40,7 @@ class EclAluGridVanguard;
} // namespace Opm } // namespace Opm
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EclAluGridVanguard, INHERITS_FROM(EclBaseVanguard)); NEW_TYPE_TAG(EclAluGridVanguard, INHERITS_FROM(EclBaseVanguard));
@@ -49,7 +49,7 @@ SET_TYPE_PROP(EclAluGridVanguard, Vanguard, Opm::EclAluGridVanguard<TypeTag>);
SET_TYPE_PROP(EclAluGridVanguard, Grid, Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>); SET_TYPE_PROP(EclAluGridVanguard, Grid, Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>);
SET_TYPE_PROP(EclAluGridVanguard, EquilGrid, Dune::CpGrid); SET_TYPE_PROP(EclAluGridVanguard, EquilGrid, Dune::CpGrid);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -64,7 +64,7 @@ template <class TypeTag>
class EclBaseVanguard; class EclBaseVanguard;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EclBaseVanguard); NEW_TYPE_TAG(EclBaseVanguard);
@@ -88,7 +88,7 @@ SET_BOOL_PROP(EclBaseVanguard, SchedRestart, false);
SET_INT_PROP(EclBaseVanguard, EdgeWeightsMethod, 1); SET_INT_PROP(EclBaseVanguard, EdgeWeightsMethod, 1);
SET_BOOL_PROP(EclBaseVanguard, OwnerCellsFirst, true); SET_BOOL_PROP(EclBaseVanguard, OwnerCellsFirst, true);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -47,7 +47,7 @@ template <class TypeTag>
class EclCpGridVanguard; class EclCpGridVanguard;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EclCpGridVanguard, INHERITS_FROM(EclBaseVanguard)); NEW_TYPE_TAG(EclCpGridVanguard, INHERITS_FROM(EclBaseVanguard));
@@ -56,7 +56,7 @@ SET_TYPE_PROP(EclCpGridVanguard, Vanguard, Opm::EclCpGridVanguard<TypeTag>);
SET_TYPE_PROP(EclCpGridVanguard, Grid, Dune::CpGrid); SET_TYPE_PROP(EclCpGridVanguard, Grid, Dune::CpGrid);
SET_TYPE_PROP(EclCpGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid)); SET_TYPE_PROP(EclCpGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid));
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -35,7 +35,7 @@
#include <opm/material/common/Unused.hpp> #include <opm/material/common/Unused.hpp>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EclNewtonSumTolerance); NEW_PROP_TAG(EclNewtonSumTolerance);
NEW_PROP_TAG(EclNewtonStrictIterations); NEW_PROP_TAG(EclNewtonStrictIterations);
@@ -43,7 +43,7 @@ NEW_PROP_TAG(EclNewtonRelaxedVolumeFraction);
NEW_PROP_TAG(EclNewtonSumToleranceExponent); NEW_PROP_TAG(EclNewtonSumToleranceExponent);
NEW_PROP_TAG(EclNewtonRelaxedTolerance); NEW_PROP_TAG(EclNewtonRelaxedTolerance);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -44,7 +44,7 @@
#include <type_traits> #include <type_traits>
BEGIN_PROPERTIES namespace Opm::Properties {
// create new type tag for the Ecl-output // create new type tag for the Ecl-output
NEW_TYPE_TAG(EclOutputBlackOil); NEW_TYPE_TAG(EclOutputBlackOil);
@@ -53,7 +53,7 @@ NEW_PROP_TAG(ForceDisableFluidInPlaceOutput);
SET_BOOL_PROP(EclOutputBlackOil, ForceDisableFluidInPlaceOutput, false); SET_BOOL_PROP(EclOutputBlackOil, ForceDisableFluidInPlaceOutput, false);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -37,7 +37,7 @@ template <class TypeTag>
class EclPolyhedralGridVanguard; class EclPolyhedralGridVanguard;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EclPolyhedralGridVanguard, INHERITS_FROM(EclBaseVanguard)); NEW_TYPE_TAG(EclPolyhedralGridVanguard, INHERITS_FROM(EclBaseVanguard));
@@ -46,7 +46,7 @@ SET_TYPE_PROP(EclPolyhedralGridVanguard, Vanguard, Opm::EclPolyhedralGridVanguar
SET_TYPE_PROP(EclPolyhedralGridVanguard, Grid, Dune::PolyhedralGrid<3, 3>); SET_TYPE_PROP(EclPolyhedralGridVanguard, Grid, Dune::PolyhedralGrid<3, 3>);
SET_TYPE_PROP(EclPolyhedralGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid)); SET_TYPE_PROP(EclPolyhedralGridVanguard, EquilGrid, typename GET_PROP_TYPE(TypeTag, Grid));
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -115,7 +115,7 @@ template <class TypeTag>
class EclProblem; class EclProblem;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
#if EBOS_USE_ALUGRID #if EBOS_USE_ALUGRID
NEW_TYPE_TAG(EclBaseProblem, INHERITS_FROM(EclAluGridVanguard, EclOutputBlackOil, VtkEclTracer)); NEW_TYPE_TAG(EclBaseProblem, INHERITS_FROM(EclAluGridVanguard, EclOutputBlackOil, VtkEclTracer));
@@ -374,10 +374,9 @@ SET_BOOL_PROP(EclBaseProblem, EclEnableTuning, false);
SET_STRING_PROP(EclBaseProblem, OutputMode, "all"); SET_STRING_PROP(EclBaseProblem, OutputMode, "all");
} // namespace Opm::Properties
END_PROPERTIES
namespace Opm { namespace Opm {
/*! /*!

View File

@@ -42,11 +42,11 @@
#include <vector> #include <vector>
#include <iostream> #include <iostream>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EnableTracerModel); NEW_PROP_TAG(EnableTracerModel);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -66,13 +66,13 @@
#include <mpi.h> #include <mpi.h>
#endif #endif
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EnableEclOutput); NEW_PROP_TAG(EnableEclOutput);
NEW_PROP_TAG(EnableAsyncEclOutput); NEW_PROP_TAG(EnableAsyncEclOutput);
NEW_PROP_TAG(EclOutputDoublePrecision); NEW_PROP_TAG(EclOutputDoublePrecision);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -40,7 +40,7 @@
#include <cstdio> #include <cstdio>
BEGIN_PROPERTIES namespace Opm::Properties {
// create new type tag for the VTK tracer output // create new type tag for the VTK tracer output
NEW_TYPE_TAG(VtkEclTracer); NEW_TYPE_TAG(VtkEclTracer);
@@ -50,7 +50,8 @@ NEW_PROP_TAG(VtkWriteEclTracerConcentration);
// set default values for what quantities to output // set default values for what quantities to output
SET_BOOL_PROP(VtkEclTracer, VtkWriteEclTracerConcentration, false); SET_BOOL_PROP(VtkEclTracer, VtkWriteEclTracerConcentration, false);
END_PROPERTIES
} // namespace Opm::Properties
namespace Opm { namespace Opm {
/*! /*!

View File

@@ -23,26 +23,24 @@
#include <opm/simulators/flow/Main.hpp> #include <opm/simulators/flow/Main.hpp>
#include <opm/simulators/linalg/ISTLSolverEbosFlexible.hpp> #include <opm/simulators/linalg/ISTLSolverEbosFlexible.hpp>
BEGIN_PROPERTIES
NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem));
SET_BOOL_PROP(EclFlowProblemSimple, MatrixAddWellContributions, true);
SET_INT_PROP(EclFlowProblemSimple, LinearSolverVerbosity,0);
SET_SCALAR_PROP(EclFlowProblemSimple, LinearSolverReduction, 1e-2);
SET_INT_PROP(EclFlowProblemSimple, LinearSolverMaxIter, 100);
SET_BOOL_PROP(EclFlowProblemSimple, UseAmg, true);//probably not used
SET_BOOL_PROP(EclFlowProblemSimple, UseCpr, true);
SET_INT_PROP(EclFlowProblemSimple, CprMaxEllIter, 1);
SET_INT_PROP(EclFlowProblemSimple, CprEllSolvetype, 3);
SET_INT_PROP(EclFlowProblemSimple, CprReuseSetup, 3);
SET_INT_PROP(EclFlowProblemSimple, CprSolverVerbose, 0);
SET_STRING_PROP(EclFlowProblemSimple, LinearSolverConfiguration, "ilu0");
SET_STRING_PROP(EclFlowProblemSimple, SystemStrategy, "quasiimpes");
END_PROPERTIES
namespace Opm { namespace Opm {
namespace Properties { namespace Properties {
NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem));
SET_BOOL_PROP(EclFlowProblemSimple, MatrixAddWellContributions, true);
SET_INT_PROP(EclFlowProblemSimple, LinearSolverVerbosity,0);
SET_SCALAR_PROP(EclFlowProblemSimple, LinearSolverReduction, 1e-2);
SET_INT_PROP(EclFlowProblemSimple, LinearSolverMaxIter, 100);
SET_BOOL_PROP(EclFlowProblemSimple, UseAmg, true);//probably not used
SET_BOOL_PROP(EclFlowProblemSimple, UseCpr, true);
SET_INT_PROP(EclFlowProblemSimple, CprMaxEllIter, 1);
SET_INT_PROP(EclFlowProblemSimple, CprEllSolvetype, 3);
SET_INT_PROP(EclFlowProblemSimple, CprReuseSetup, 3);
SET_INT_PROP(EclFlowProblemSimple, CprSolverVerbose, 0);
SET_STRING_PROP(EclFlowProblemSimple, LinearSolverConfiguration, "ilu0");
SET_STRING_PROP(EclFlowProblemSimple, SystemStrategy, "quasiimpes");
SET_PROP(EclFlowProblemSimple, FluidSystem) SET_PROP(EclFlowProblemSimple, FluidSystem)
{ {
private: private:

View File

@@ -23,7 +23,8 @@
#include <opm/models/blackoil/blackoilonephaseindices.hh> #include <opm/models/blackoil/blackoilonephaseindices.hh>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem)); NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem));
//! The indices required by the model //! The indices required by the model
SET_PROP(EclFlowProblemSimple, Indices) SET_PROP(EclFlowProblemSimple, Indices)
@@ -45,7 +46,8 @@ public:
/*enebledCompIdx=*/FluidSystem::waterCompIdx> /*enebledCompIdx=*/FluidSystem::waterCompIdx>
type; type;
}; };
END_PROPERTIES
} // namespace Opm::Properties
int main(int argc, char** argv) int main(int argc, char** argv)
{ {

View File

@@ -22,8 +22,8 @@
#include <opm/simulators/flow/Main.hpp> #include <opm/simulators/flow/Main.hpp>
#include <opm/models/blackoil/blackoilonephaseindices.hh> #include <opm/models/blackoil/blackoilonephaseindices.hh>
namespace Opm::Properties {
BEGIN_PROPERTIES
NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem)); NEW_TYPE_TAG(EclFlowProblemSimple, INHERITS_FROM(EclFlowProblem));
SET_BOOL_PROP(EclFlowProblemSimple, EnableEnergy, true); SET_BOOL_PROP(EclFlowProblemSimple, EnableEnergy, true);
//! The indices required by the model //! The indices required by the model
@@ -46,7 +46,8 @@ public:
/*enebledCompIdx=*/FluidSystem::waterCompIdx> /*enebledCompIdx=*/FluidSystem::waterCompIdx>
type; type;
}; };
END_PROPERTIES
} // namespace Opm::Properties
int main(int argc, char** argv) int main(int argc, char** argv)
{ {

View File

@@ -69,8 +69,7 @@
#include <vector> #include <vector>
#include <algorithm> #include <algorithm>
namespace Opm::Properties {
BEGIN_PROPERTIES
NEW_TYPE_TAG(EclFlowProblem, INHERITS_FROM(BlackOilModel, EclBaseProblem, FlowNonLinearSolver, FlowModelParameters, FlowTimeSteppingParameters)); NEW_TYPE_TAG(EclFlowProblem, INHERITS_FROM(BlackOilModel, EclBaseProblem, FlowNonLinearSolver, FlowModelParameters, FlowTimeSteppingParameters));
SET_STRING_PROP(EclFlowProblem, OutputDir, ""); SET_STRING_PROP(EclFlowProblem, OutputDir, "");
@@ -93,8 +92,7 @@ SET_BOOL_PROP(EclFlowProblem, EnableBrine, false);
SET_TYPE_PROP(EclFlowProblem, EclWellModel, Opm::BlackoilWellModel<TypeTag>); SET_TYPE_PROP(EclFlowProblem, EclWellModel, Opm::BlackoilWellModel<TypeTag>);
SET_TAG_PROP(EclFlowProblem, LinearSolverSplice, FlowIstlSolver); SET_TAG_PROP(EclFlowProblem, LinearSolverSplice, FlowIstlSolver);
} // namespace Opm::Properties
END_PROPERTIES
namespace Opm { namespace Opm {
/// A model implementation for three-phase black oil. /// A model implementation for three-phase black oil.

View File

@@ -25,7 +25,7 @@
#include <string> #include <string>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowModelParameters); NEW_TYPE_TAG(FlowModelParameters);
@@ -93,7 +93,7 @@ SET_SCALAR_PROP(FlowModelParameters, RelaxedPressureTolInnerIterMsw, 0.5e5);
SET_INT_PROP(FlowModelParameters, ThreadsPerProcess, -1); SET_INT_PROP(FlowModelParameters, ThreadsPerProcess, -1);
#endif #endif
END_PROPERTIES } // namespace Opm::Properties
namespace Opm namespace Opm
{ {

View File

@@ -48,7 +48,7 @@
#include <dune/common/parallel/mpihelper.hh> #include <dune/common/parallel/mpihelper.hh>
#endif #endif
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EnableDryRun); NEW_PROP_TAG(EnableDryRun);
NEW_PROP_TAG(OutputInterval); NEW_PROP_TAG(OutputInterval);
@@ -60,7 +60,7 @@ SET_STRING_PROP(EclFlowProblem, EnableDryRun, "auto");
SET_BOOL_PROP(EclFlowProblem, EnableLoggingFalloutWarning, false); SET_BOOL_PROP(EclFlowProblem, EnableLoggingFalloutWarning, false);
SET_INT_PROP(EclFlowProblem, OutputInterval, 1); SET_INT_PROP(EclFlowProblem, OutputInterval, 1);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm namespace Opm
{ {

View File

@@ -68,13 +68,13 @@
#include <string> #include <string>
#include <type_traits> #include <type_traits>
BEGIN_PROPERTIES namespace Opm::Properties {
// this is a dummy type tag that is used to setup the parameters before the actual // this is a dummy type tag that is used to setup the parameters before the actual
// simulator. // simulator.
NEW_TYPE_TAG(FlowEarlyBird, INHERITS_FROM(EclFlowProblem)); NEW_TYPE_TAG(FlowEarlyBird, INHERITS_FROM(EclFlowProblem));
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {
template <class TypeTag> template <class TypeTag>

View File

@@ -34,7 +34,7 @@
#include <dune/istl/bcrsmatrix.hh> #include <dune/istl/bcrsmatrix.hh>
#include <memory> #include <memory>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowNonLinearSolver); NEW_TYPE_TAG(FlowNonLinearSolver);
@@ -48,7 +48,7 @@ SET_INT_PROP(FlowNonLinearSolver, FlowNewtonMaxIterations, 20);
SET_INT_PROP(FlowNonLinearSolver, FlowNewtonMinIterations, 1); SET_INT_PROP(FlowNonLinearSolver, FlowNewtonMinIterations, 1);
SET_STRING_PROP(FlowNonLinearSolver, NewtonRelaxationType, "dampen"); SET_STRING_PROP(FlowNonLinearSolver, NewtonRelaxationType, "dampen");
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -34,7 +34,7 @@
#include <opm/common/Exceptions.hpp> #include <opm/common/Exceptions.hpp>
#include <opm/common/ErrorMacros.hpp> #include <opm/common/ErrorMacros.hpp>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EnableAdaptiveTimeStepping); NEW_PROP_TAG(EnableAdaptiveTimeStepping);
NEW_PROP_TAG(EnableTuning); NEW_PROP_TAG(EnableTuning);
@@ -43,7 +43,7 @@ SET_BOOL_PROP(EclFlowProblem, EnableTerminalOutput, true);
SET_BOOL_PROP(EclFlowProblem, EnableAdaptiveTimeStepping, true); SET_BOOL_PROP(EclFlowProblem, EnableAdaptiveTimeStepping, true);
SET_BOOL_PROP(EclFlowProblem, EnableTuning, false); SET_BOOL_PROP(EclFlowProblem, EnableTuning, false);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {

View File

@@ -39,7 +39,7 @@ class ISTLSolverEbos;
} }
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowIstlSolverParams); NEW_TYPE_TAG(FlowIstlSolverParams);
@@ -100,9 +100,7 @@ SET_STRING_PROP(FlowIstlSolverParams, GpuMode, "none");
SET_INT_PROP(FlowIstlSolverParams, BdaDeviceId, 0); SET_INT_PROP(FlowIstlSolverParams, BdaDeviceId, 0);
SET_INT_PROP(FlowIstlSolverParams, OpenclPlatformId, 0); SET_INT_PROP(FlowIstlSolverParams, OpenclPlatformId, 0);
} // namespace Opm::Properties
END_PROPERTIES
namespace Opm namespace Opm
{ {

View File

@@ -54,7 +54,7 @@
#include <opm/simulators/linalg/bda/BdaBridge.hpp> #include <opm/simulators/linalg/bda/BdaBridge.hpp>
#endif #endif
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowIstlSolver, INHERITS_FROM(FlowIstlSolverParams)); NEW_TYPE_TAG(FlowIstlSolver, INHERITS_FROM(FlowIstlSolverParams));
@@ -74,7 +74,7 @@ public:
typedef typename Opm::Linear::IstlSparseMatrixAdapter<Block> type; typedef typename Opm::Linear::IstlSparseMatrixAdapter<Block> type;
}; };
END_PROPERTIES } // namespace Opm::Properties
namespace Opm namespace Opm
{ {

View File

@@ -33,11 +33,11 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowIstlSolverFlexible, INHERITS_FROM(FlowIstlSolverParams)); NEW_TYPE_TAG(FlowIstlSolverFlexible, INHERITS_FROM(FlowIstlSolverParams));
END_PROPERTIES } // namespace Opm::Properties
namespace Opm namespace Opm

View File

@@ -17,7 +17,7 @@
#include <opm/simulators/timestepping/TimeStepControl.hpp> #include <opm/simulators/timestepping/TimeStepControl.hpp>
#include <opm/core/props/phaseUsageFromDeck.hpp> #include <opm/core/props/phaseUsageFromDeck.hpp>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_TYPE_TAG(FlowTimeSteppingParameters); NEW_TYPE_TAG(FlowTimeSteppingParameters);
@@ -61,8 +61,7 @@ SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlGrowthRate, 1.25);
SET_STRING_PROP(FlowTimeSteppingParameters, TimeStepControlFileName, "timesteps"); SET_STRING_PROP(FlowTimeSteppingParameters, TimeStepControlFileName, "timesteps");
SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.001); SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.001);
} // namespace Opm::Properties
END_PROPERTIES
namespace Opm { namespace Opm {
// AdaptiveTimeStepping // AdaptiveTimeStepping

View File

@@ -61,11 +61,11 @@
#include <opm/simulators/utils/DeferredLogger.hpp> #include <opm/simulators/utils/DeferredLogger.hpp>
BEGIN_PROPERTIES namespace Opm::Properties {
NEW_PROP_TAG(EnableTerminalOutput); NEW_PROP_TAG(EnableTerminalOutput);
END_PROPERTIES } // namespace Opm::Properties
namespace Opm { namespace Opm {