stripy
stripy copied to clipboard
import issue when using underworld
Hi guys, I run into an import issue and that bother me a while, would you help me check with that? if import underworld and stripy together, it will somehow get the wrong tri.simplices:
import underworld
from stripy import cartesian_meshes
minX, maxX, minY, maxY, dx, dy = 0.0, 3.0 ,0.0, 1.0, 0.015625 ,0.015625
extent_xy = [minX, maxX, minY, maxY]
tri = cartesian_meshes.square_mesh(extent_xy, dx,dy, random_scale=0.0, refinement_levels=0)
tri.simplices
The result is:
TRMESH - Fatal error!
The first 3 nodes are collinear.
Try reordering the data.
array([], shape=(0, 3), dtype=int64)
While import stripy alone, the tri.simplices are correct as:
array([[ 0, 12544, 11005],
[ 0, 11005, 193],
[ 1, 12543, 11470],
...,
[12096, 12434, 12433],
[12209, 12398, 12397],
[12260, 12419, 12418]])
Are there any function conflicts there in underworld and stripy or? Thanks in advance.