Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshiraiwa committed Apr 13, 2018
1 parent d4f95bd commit 64e05fb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion petram/geom/geom_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
dprint1, dprint2, dprint3 = debug.init_dprints('GeomModel')

from petram.model import Model
from petram.mfem_model import MFEM_GeomRoot # this is needed for backward compatibility

try:
# this is needed for backward compatibility
from petram.mfem_model import MFEM_GeomRoot
except:
class MFEM_GeomRoot(GeomBase):
can_delete = False
has_2nd_panel = False
def get_possible_child(self):
from .gmsh_geom_model import GmshGeom
return [GmshGeom]

from petram.namespace_mixin import NS_mixin

Expand Down
2 changes: 1 addition & 1 deletion petram/mesh/gmsh_mesh_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def geom_root(self):
return self.root()['Geometry'][self.geom_group]

def attribute_set(self, v):
v['geom_group'] = ''
v['geom_group'] = 'GmshGeom1'
v['algorithm'] = 'default'
v['algorithm3d'] = 'default'
super(GmshMesh, self).attribute_set(v)
Expand Down

0 comments on commit 64e05fb

Please sign in to comment.