ryujin 2.1.1 revision 78f48c86fcb9c040da63d5afdaec959ac4463738
stub_parabolic_system.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2022 - 2023 by the ryujin authors
4//
5
6#pragma once
7
8#include <compile_time_options.h>
10
11#include <deal.II/base/parameter_acceptor.h>
12
13namespace ryujin
14{
21 class StubParabolicSystem final : public dealii::ParameterAcceptor
22 {
23 public:
27 static inline const std::string problem_name = "Identity";
28
32 static constexpr bool is_identity = true;
33
37 StubParabolicSystem(const std::string &subsection = "/ParabolicSystem");
38
39 unsigned int n_parabolic_state_vectors() const
40 {
41 return parabolic_component_names_.size();
42 }
43
44 ACCESSOR_READ_ONLY(parabolic_component_names);
45
46 private:
47 const std::vector<std::string> parabolic_component_names_;
48 }; /* StubParabolicSystem */
49
50
51 /*
52 * -------------------------------------------------------------------------
53 * Inline definitions
54 * -------------------------------------------------------------------------
55 */
56
57
58 inline StubParabolicSystem::StubParabolicSystem(const std::string &subsection)
59 : ParameterAcceptor(subsection)
60 {
61 }
62} // namespace ryujin
static const std::string problem_name
ACCESSOR_READ_ONLY(parabolic_component_names)
unsigned int n_parabolic_state_vectors() const
StubParabolicSystem(const std::string &subsection="/ParabolicSystem")
static constexpr bool is_identity