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
17namespace Dumux {
18
19template<class PrimaryVariables>
21{
22 static constexpr std::size_t numEq = PrimaryVariables::size();
23 using type = PrimaryVariables;
24};
25
33template<class PrimaryVariables>
35
36} // namespace Dumux
37
38#endif
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
Definition: adapt.hh:17
Definition: numeqvector.hh:21
PrimaryVariables type
Definition: numeqvector.hh:23
static constexpr std::size_t numEq
Definition: numeqvector.hh:22