| 1 |
# SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md |
| 2 |
# SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later |
| 3 |
|
| 4 |
from dune.generator.generator import SimpleGenerator |
| 5 |
from dune.common.hashit import hashIt |
| 6 |
from dune.common.checkconfiguration import assertHave, ConfigurationError |
| 7 |
|
| 8 |
from .boundarydofs import * |
| 9 |
from .globalbasis import defaultGlobalBasis |
| 10 |
from .subspacebasis import subspaceBasis |
| 11 |
from .tree import * |
| 12 |
|
| 13 |
registry = dict() |
| 14 |
registry["globalBasis"] = { |
| 15 |
"default" : defaultGlobalBasis |
| 16 |
} |
| 17 |
|
| 18 |
generator = SimpleGenerator("GlobalBasis", "Dune::Python") |
| 19 |
|
| 20 |
def load(includes, typeName, *args): |
| 21 |
includes = includes + ["dune/python/functions/globalbasis.hh"] |
| 22 |
moduleName = "globalbasis_" + hashIt(typeName) |
| 23 |
module = generator.load(includes, typeName, moduleName, *args) |
| 24 |
return module |