-
I'm learning the "Triangular mesh example" in https://flopy.readthedocs.io/en/stable/Notebooks/dis_triangle_example.html.I am not sure if I have compiled the correct exe file, anyway I put the exe file in the root directory and still get an error: from flopy.utils.triangle import Triangle AttributeError Traceback (most recent call last) File C:\ProgramData\Anaconda3\lib\site-packages\flopy\utils\triangle.py:189, in Triangle.build(self, verbose) AttributeError: 'NoneType' object has no attribute 'shape' Can you tell me what might be wrong or give me a correct triangle.exe? My computer is Win 11 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The triangle program is distributed with the rest of the MODFLOW executables. You might try with the distributed executable instead of building triangle from source. Your error indicates |
Beta Was this translation helpful? Give feedback.
-
triangle is also available from conda-forge |
Beta Was this translation helpful? Give feedback.
The triangle program is distributed with the rest of the MODFLOW executables. You might try with the distributed executable instead of building triangle from source.
Your error indicates
self.ele
isNone
, which would occur if the.ele
output file was not produced as expected. (Perhaps flopy's triangle wrapper should warn in that case.)