Hey Everyone,
I recently came across a bug when attempting to load meshes from file. I have attached a minimal working example that meshes either the unit square or two concentric circles. In both cases, I was able to catch the following exception when attempting to load from file:
netgen.libngpy._meshing.NgException: co dim 2 elements not implemented for dimension 2
In the working example, you can generate this exception by setting geotype in the main section of the code to either ‘circle’ or ‘square’. Here’s some more information in case it’s needed:
[ul]
[li]Operating System: CentOS Linux 7 (Core)[/li]
[li]NGSolve Version: NGSolve-6.2.2101-48-gbd6eaf8[/li]
[li]NGSolve Version: 3.8.6[/li]
[/ul]
To reproduce this bug, run either of the following commands at the terminal:
[ul]
[li]python3 mesh_load_bug.py[/li]
[li]netgen mesh_load_bug.py[/li]
[/ul]
Any help on the matter is greatly appreciated.
In comparison, I had no issues running the same script on Windows, but I am using different versions of Python and NGSolve. In case this may help troubleshoot, here’s the information:
[ul]
[li]Operating System: Windows 10 Home[/li]
[li]Operating System Version: 20H2[/li]
[li]Operating System Build: 19042.867[/li]
[li]NGSolve Version: NGSolve-6.2.2101-140-g62e21dad8[/li]
[li]NGSolve Version: 3.7.9[/li]
[/ul]
-Ben
Attachment: mesh_load_bug.py