From 3730ce659e17d5244f1ff9405c2151114428ac85 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Mon, 1 Jul 2024 09:36:44 +0200 Subject: [PATCH] fvbaseproperties.hh: put setting of defaults values in separate section increases overview --- .../discretization/common/fvbaseproperties.hh | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/opm/models/discretization/common/fvbaseproperties.hh b/opm/models/discretization/common/fvbaseproperties.hh index dba1b2611..c4aa6835c 100644 --- a/opm/models/discretization/common/fvbaseproperties.hh +++ b/opm/models/discretization/common/fvbaseproperties.hh @@ -50,25 +50,10 @@ struct FvBaseDiscretization } // namespace TTag -//! set the splices for the finite volume discretizations template struct LinearSolverSplice { using type = UndefinedProperty; }; template struct LocalLinearizerSplice { using type = UndefinedProperty; }; -template -struct Splices -{ - using type = std::tuple, - GetSplicePropType>; -}; - -//! use a parallel BiCGStab linear solver by default -template -struct LinearSolverSplice { using type = TTag::ParallelBiCGStabLinearSolver; }; - -//! by default, use finite differences to linearize the system of PDEs -template -struct LocalLinearizerSplice { using type = TTag::FiniteDifferenceLocalLinearizer; }; /*! * \brief Representation of a function evaluation and all necessary derivatives with @@ -256,6 +241,26 @@ struct UseVolumetricResidual { using type = UndefinedProperty; }; template struct EnableExperiments { using type = UndefinedProperty; }; +// Set defaults + +//! set the splices for the finite volume discretizations +template +struct Splices +{ + using type = std::tuple, + GetSplicePropType>; +}; + +//! use a parallel BiCGStab linear solver by default +template +struct LinearSolverSplice +{ using type = TTag::ParallelBiCGStabLinearSolver; }; + +//! by default, use finite differences to linearize the system of PDEs +template +struct LocalLinearizerSplice +{ using type = TTag::FiniteDifferenceLocalLinearizer; }; + } // namespace Opm::Properties #endif