version 3.10-dev
fluidsystem.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_PYTHON_MATERIAL_FLUIDSYSTEMS_FLUIDSYSTEM_HH
13#define DUMUX_PYTHON_MATERIAL_FLUIDSYSTEMS_FLUIDSYSTEM_HH
14
15#include <dune/python/pybind11/pybind11.h>
16#include <dune/python/pybind11/stl.h>
17
18namespace Dumux::Python {
19
20template <class FS, class... options>
21void registerFluidSystem(pybind11::handle scope,
22 pybind11::class_<FS, options...> cls)
23{
24 cls.def(pybind11::init());
25}
26
27} // namespace Dumux::Python
28
29#endif
Definition: python/assembly/fvassembler.hh:18
void registerFluidSystem(pybind11::handle scope, pybind11::class_< FS, options... > cls)
Definition: fluidsystem.hh:21