version 3.10-dev
common/typetraits/problem.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_TYPETRAITS_PROBLEM_HH
13#define DUMUX_TYPETRAITS_PROBLEM_HH
14
15#include <type_traits>
17
18namespace Dumux {
19
20// forward declare
21namespace Detail {
22template<class Problem, class DiscretizationMethod>
24} // end namespace Detail
25
30template<class Problem>
32{
33 using GridGeometry = std::decay_t<decltype(std::declval<Problem>().gridGeometry())>;
35};
36
37} // end namespace Dumux
38
39#endif
The available discretization methods in Dumux.
Definition: adapt.hh:17
Definition: common/typetraits/problem.hh:23
Type traits for problem classes.
Definition: common/typetraits/problem.hh:32
std::decay_t< decltype(std::declval< Problem >().gridGeometry())> GridGeometry
Definition: common/typetraits/problem.hh:33
typename Detail::template ProblemTraits< Problem, typename GridGeometry::DiscretizationMethod >::BoundaryTypes BoundaryTypes
Definition: common/typetraits/problem.hh:34