version 3.10-dev
numeqvector.hh
Go to the documentation of this file.
1
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
// vi: set et ts=4 sw=4 sts=4:
3
//
4
// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5
// SPDX-License-Identifier: GPL-3.0-or-later
6
//
12
#ifndef DUMUX_COMMON_NUMEQVECTOR_HH
13
#define DUMUX_COMMON_NUMEQVECTOR_HH
14
15
#include <cstddef>
16
17
namespace
Dumux
{
18
19
template
<
class
PrimaryVariables>
20
struct
NumEqVectorTraits
21
{
22
static
constexpr
std::size_t
numEq
= PrimaryVariables::size();
23
using
type
= PrimaryVariables;
24
};
25
33
template
<
class
PrimaryVariables>
34
using
NumEqVector
=
typename
NumEqVectorTraits<PrimaryVariables>::type
;
35
36
}
// namespace Dumux
37
38
#endif
Dumux::NumEqVector
typename NumEqVectorTraits< PrimaryVariables >::type NumEqVector
A vector with the same size as numbers of equations This is the default implementation and has to be ...
Definition:
numeqvector.hh:34
Dumux
Definition:
adapt.hh:17
Dumux::NumEqVectorTraits
Definition:
numeqvector.hh:21
Dumux::NumEqVectorTraits::type
PrimaryVariables type
Definition:
numeqvector.hh:23
Dumux::NumEqVectorTraits::numEq
static constexpr std::size_t numEq
Definition:
numeqvector.hh:22
dumux
common
numeqvector.hh
© Copyright 2010-
DuMux project contributors
(doc pages:
CC-BY 4.0
/ code examples:
GPLv3 or later
)
3.10-dev Generated by
1.9.3