Skip to content
Snippets Groups Projects
Commit cb65316c authored by Timo Koch's avatar Timo Koch
Browse files

[python][model] Deduce discretization method from the grid geometry

parent 58d88580
No related branches found
No related tags found
1 merge request!2681Feature/python main file
......@@ -153,6 +153,15 @@ class TypeTag:
else:
self.isExistingTypeTag = False
if self.gridGeometry is not None:
discretizationMethod = self.gridGeometry.discMethod
map = {
"box": "BoxModel",
"cctpfa": "CCTpfaModel",
}
if discretizationMethod in map:
self.inheritsFrom += [map[discretizationMethod]]
if self.inheritsFrom is not None:
# treat existing TypeTags by converting the given string to a real TypeTag object
for idx, parentTypeTag in enumerate(self.inheritsFrom):
......
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