version 3.8
defaultiofields.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//
13#ifndef DUMUX_IO_DEFAULT_IO_FIELDS_HH
14#define DUMUX_IO_DEFAULT_IO_FIELDS_HH
15
16#include <dune/common/exceptions.hh>
17
18namespace Dumux {
19
25{
26public:
27 template<class OutputModule>
28 static void initOutputModule(OutputModule& out)
29 {
30 DUNE_THROW(Dune::NotImplemented, "This model doesn't implement default output fields!");
31 }
32
33 template <class FluidSystem = void, class SolidSystem = void>
34 static std::string primaryVariableName(int pvIdx = 0, int state = 0)
35 {
36 DUNE_THROW(Dune::NotImplemented, "This model doesn't implement primaryVariableName!");
37 }
38};
39
40} // end namespace Dumux
41
42#endif
Adds output fields to a given output module.
Definition: defaultiofields.hh:25
static void initOutputModule(OutputModule &out)
Definition: defaultiofields.hh:28
static std::string primaryVariableName(int pvIdx=0, int state=0)
Definition: defaultiofields.hh:34
Definition: adapt.hh:17