Skip to content

Commit f25faca

Browse files
committed
Improve mesh input of example
1 parent 520cfb7 commit f25faca

File tree

4 files changed

+3
-171
lines changed

4 files changed

+3
-171
lines changed

examples/01_random_field/05_mesh_ensemble.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222

2323
import gstools as gs
2424

25-
# read a triangulated hexagon with meshio
26-
mesh_input = meshio.read("hexagon.mesh")
27-
points = mesh_input.points
28-
cells = mesh_input.cells[0].data
25+
# read a triangulated hexagon
26+
points = np.load("hexagon_points.npy")
27+
cells = np.load("hexagon_cells.npy")
2928
mesh = meshio.Mesh(points, {"triangle": cells})
3029

3130
###############################################################################

examples/01_random_field/hexagon.mesh

Lines changed: 0 additions & 167 deletions
This file was deleted.
2.38 KB
Binary file not shown.
1.08 KB
Binary file not shown.

0 commit comments

Comments
 (0)