ryujin 2.5.0 revision 3a6c8d57210175dea14d8116e1fe878f349f8c1c
Loading...
Searching...
No Matches
equation.h
Go to the documentation of this file.
1//
2// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
3// Copyright (C) 2026 by the ryujin authors
4//
5
6#pragma once
7
8#include <ryujin/base/compile_time_options.h>
10
11#include <deal.II/base/mpi.h>
12
13#include <string>
14
15namespace ryujin
16{
17 namespace Interface
18 {
26 {
27 public:
28 virtual ~Equation() = default;
29
34 virtual void run(int dim,
35 const std::string &parameter_file,
36 const MPI_Comm &mpi_comm) const = 0;
37
42 virtual void create_parameter_files() const = 0;
43
49
50 protected:
51 Equation(const std::string &name)
52 : name_(name)
53 {
54 }
55
56 private:
57 const std::string name_;
58 };
59 } // namespace Interface
60} // namespace ryujin
virtual void run(int dim, const std::string &parameter_file, const MPI_Comm &mpi_comm) const =0
virtual void create_parameter_files() const =0
Equation(const std::string &name)
Definition equation.h:51
virtual ~Equation()=default
#define ACCESSOR_READ_ONLY(member)