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

[bugfix][paper] Fix exception for polygongrid.

parent 5ec02493
No related branches found
No related tags found
No related merge requests found
Pipeline #34410 passed
......@@ -52,8 +52,8 @@ elif grid == "naffine":
elif grid == "poly":
try:
from dune.polygongrid import polygonGrid as gridPoly
except ModuleNotFoundError:
assert("dune-polygongrid not found, select other grid or install dune-polygongrid!")
except:
print("dune-polygongrid not found, select other grid or install dune-polygongrid!")
Model.domain = (reader.dgf, "shockvortex_poly.dgf")
grid = lambda domain, dimgrid: gridPoly( Model.domain, dualGrid=True )
......
......@@ -44,10 +44,10 @@ elif grid == "naffine":
from dune.alugrid import aluCubeGrid as grid
Model.domain = (reader.dgf, "shockvortex_naffine.dgf")
elif grid == "poly":
try:
from dune.polygongrid import polygonGrid as gridPoly
except ModuleNotFoundError:
assert("dune-polygongrid not found, select other grid or install dune-polygongrid!")
try:
from dune.polygongrid import polygonGrid as gridPoly
except:
print("dune-polygongrid not found, select other grid or install dune-polygongrid!")
Model.domain = (reader.dgf, "shockvortex_poly.dgf")
Model.boundary = Model.polyBoundary
......
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