Skip to content
Snippets Groups Projects
Commit 21be2905 authored by Robert K's avatar Robert K
Browse files

[bugfix][Python] added missing spAnisotropicGrid

parent 9b32da8c
No related branches found
No related tags found
No related merge requests found
Pipeline #31429 failed
......@@ -33,11 +33,25 @@ def spIsotropicGrid(domain, dimgrid=None, ctype="double"):
return gridModule.LeafGrid(gridModule.reader(domain))
def spAnisotropicGrid(domain, dimgrid=None, ctype="double"):
from ..grid.grid_generator import module, getDimgrid
if dimgrid is None:
dimgrid = getDimgrid(domain)
typeName = "Dune::SPGrid< " + ctype + ", " + str(dimgrid) + ", Dune::SPAnisotropicRefinement >"
includes = ["dune/grid/spgrid.hh", "dune/grid/spgrid/dgfparser.hh"]
gridModule = module(includes, typeName)
return gridModule.LeafGrid(gridModule.reader(domain))
registry = {}
registry["grid"] = {
"SPBisection": spBisectionGrid,
"SPIsotropic": spIsotropicGrid
"SPIsotropic": spIsotropicGrid,
"SPAnisotropic": spAnisotropicGrid
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment