Skip to content

Commit fd74c25

Browse files
author
Simo Nikula
committed
better test for get_triangles
1 parent b50d667 commit fd74c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/11-simo/simo/dev.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self,*args, **kwargs):
1818
"""
1919
"""
2020
def get_triangles(self):
21-
if self.triangles == None:
21+
if not isinstance(self.triangles,np.ndarray):
2222
ma=self.mesh_elements
2323
ne=len(ma)
2424
nt=4*ne

0 commit comments

Comments
 (0)