Commit 47d80ebe authored by Timo Koch's avatar Timo Koch
Browse files

[discretziation][doc] Use discMethod for all DiscretizationMethod template argument names

parent 9630f879
......@@ -34,7 +34,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod DM>
template <class TypeTag, DiscretizationMethod discMethod>
class FouriersLawNonEquilibriumImplementation;
/*!
......
......@@ -35,7 +35,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod DM>
template <class TypeTag, DiscretizationMethod discMethod>
class MaxwellStefansLawImplementation;
/*!
......
......@@ -50,7 +50,7 @@ namespace Dumux
* The interfaces of the lambdas are chosen such that all involved tensors can be extracted
* with the given arguments.
*/
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class TensorLambdaFactory
{
public:
......
......@@ -35,7 +35,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod DM>
template <class TypeTag, DiscretizationMethod discMethod>
class MaxwellStefansLawImplementation;
/*!
......
......@@ -33,7 +33,7 @@
namespace Dumux
{
// forward declaration
template <class TypeTag, DiscretizationMethod Method>
template <class TypeTag, DiscretizationMethod discMethod>
class DarcysLawImplementation
{};
......
......@@ -32,7 +32,7 @@
namespace Dumux
{
// forward declaration
template <class TypeTag, DiscretizationMethod Method>
template <class TypeTag, DiscretizationMethod discMethod>
class FicksLawImplementation;
/*!
......
......@@ -41,7 +41,7 @@ namespace Dumux
* since we use the flux stencil for matrix and assembly. This might lead to some zeros stored
* in the matrix.
*/
template<class FVElementGeometry, DiscretizationMethod Method = FVElementGeometry::FVGridGeometry::discretizationMethod>
template<class FVElementGeometry, DiscretizationMethod discMethod = FVElementGeometry::FVGridGeometry::discretizationMethod>
class FluxStencil;
/*
......
......@@ -32,7 +32,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod Method>
template <class TypeTag, DiscretizationMethod discMethod>
class FouriersLawImplementation
{};
......
......@@ -30,7 +30,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod Method>
template <class TypeTag, DiscretizationMethod discMethod>
class FouriersLawNonEquilibriumImplementation
{};
......
......@@ -30,7 +30,7 @@
namespace Dumux
{
// forward declaration
template <class TypeTag, DiscretizationMethod Method>
template <class TypeTag, DiscretizationMethod discMethod>
class MaxwellStefansLawImplementation
{};
......
......@@ -35,7 +35,7 @@
namespace Dumux {
// forward declaration
template <class TypeTag, DiscretizationMethod DM>
template <class TypeTag, DiscretizationMethod discMethod>
class MaxwellStefansLawImplementation;
/*!
......
......@@ -32,7 +32,7 @@ namespace Dumux
{
//! Forward declaration of the upwind scheme implementation
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class UpwindSchemeImplementation;
/*!
......
......@@ -32,7 +32,7 @@ namespace Dumux
{
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class NavierStokesFluxVariablesImpl;
/*!
......
......@@ -30,7 +30,7 @@
namespace Dumux
{
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class FreeFlowFluxVariablesCacheImplementation
{};
......
......@@ -32,7 +32,7 @@ namespace Dumux
{
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class NavierStokesResidualImpl;
/*!
......
......@@ -34,7 +34,7 @@ namespace Dumux
//! The implementation is specialized for the different discretizations
template<class TypeTag, DiscretizationMethod DM> struct NavierStokesParentProblemImpl;
template<class TypeTag, DiscretizationMethod discMethod> struct NavierStokesParentProblemImpl;
template<class TypeTag>
struct NavierStokesParentProblemImpl<TypeTag, DiscretizationMethod::staggered>
......
......@@ -32,7 +32,7 @@ namespace Dumux
{
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class NavierStokesFluxVariablesImpl;
......
......@@ -33,7 +33,7 @@ namespace Dumux
{
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class NavierStokesResidualImpl;
/*!
......
......@@ -50,8 +50,8 @@ class NavierStokesVtkOutputFields
using GlobalPosition = Dune::FieldVector<Scalar, GridView::dimensionworld>;
// Helper type used for tag dispatching (to add discretization-specific fields).
template<DiscretizationMethod method>
using MethodType = std::integral_constant<DiscretizationMethod, method>;
template<DiscretizationMethod discMethod>
using discMethodTag = std::integral_constant<DiscretizationMethod, discMethod>;
public:
//! Initialize the Navier-Stokes specific vtk output fields.
......@@ -61,8 +61,7 @@ public:
vtk.addVolumeVariable([](const VolumeVariables& v){ return v.pressure(); }, "p");
// add discretization-specific fields
const auto discType = MethodType<GET_PROP_VALUE(TypeTag, DiscretizationMethod)>();
additionalOutput_(vtk, discType);
additionalOutput_(vtk, discMethodTag<GET_PROP_VALUE(TypeTag, DiscretizationMethod)>{});
}
private:
......@@ -74,7 +73,7 @@ private:
//! Adds discretization-specific fields (velocity vectors on the faces for the staggered discretization).
template <class VtkOutputModule>
static void additionalOutput_(VtkOutputModule& vtk, MethodType<DiscretizationMethod::staggered>)
static void additionalOutput_(VtkOutputModule& vtk, discMethodTag<DiscretizationMethod::staggered>)
{
const bool writeFaceVars = getParamFromGroup<bool>(GET_PROP_VALUE(TypeTag, ModelParameterGroup), "Vtk.WriteFaceData", false);
if(writeFaceVars)
......
......@@ -32,7 +32,7 @@ namespace Dumux
// forward declaration
template<class TypeTag, DiscretizationMethod Method>
template<class TypeTag, DiscretizationMethod discMethod>
class NavierStokesNCFluxVariablesImpl;
/*!
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment