Skip to content

Commit

Permalink
update gmsh interface
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 8, 2019
1 parent ea731a6 commit d3e0594
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ogs5py/fileclasses/msh/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ def grid_adapter2D(
out_dim, in_dim, out_res, in_res, out_pos, in_pos, z_pos
)
mesh = pg.generate_mesh(geo, dim=2)
out = convert_meshio(mesh.points, mesh.cells, import_dim=2)
out = convert_meshio(mesh, import_dim=2)
out["material_id"] = gen_std_mat_id(out["elements"], out_mat)

if fill:
Expand Down Expand Up @@ -516,7 +516,7 @@ def grid_adapter3D(
out_dim, in_dim, z_dim, out_res, in_res, out_pos, in_pos, z_pos
)
mesh = pg.generate_mesh(geo)
out = convert_meshio(mesh.points, mesh.cells, import_dim=3)
out = convert_meshio(mesh, import_dim=3)
out["material_id"] = gen_std_mat_id(out["elements"], out_mat)

if fill:
Expand Down Expand Up @@ -581,7 +581,7 @@ def block_adapter3D(xy_dim=10.0, z_dim=5.0, in_res=1.0):

geo = gmsh_block_adapt3D(xy_dim, z_dim, in_res)
mesh = pg.generate_mesh(geo)
out = convert_meshio(mesh.points, mesh.cells, import_dim=3)
out = convert_meshio(mesh, import_dim=3)
return out


Expand Down Expand Up @@ -626,5 +626,5 @@ def generate_gmsh(path_or_code, import_dim=(1, 2, 3)):

geo = gmsh_code(path_or_code)
mesh = pg.generate_mesh(geo)
out = convert_meshio(mesh.points, mesh.cells, import_dim=import_dim)
out = convert_meshio(mesh, import_dim=import_dim)
return out

0 comments on commit d3e0594

Please sign in to comment.