- Thank you received: 0
Need Help Diagnosing Mesh Loading Bug
3 years 7 months ago - 3 years 7 months ago #3608
by bqprkr
Need Help Diagnosing Mesh Loading Bug was created by bqprkr
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:
To reproduce this bug, run either of the following commands at the terminal:
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:
-Ben
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:
- Operating System: CentOS Linux 7 (Core)
- NGSolve Version: NGSolve-6.2.2101-48-gbd6eaf8
- NGSolve Version: 3.8.6
To reproduce this bug, run either of the following commands at the terminal:
- python3 mesh_load_bug.py
- netgen mesh_load_bug.py
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:
- Operating System: Windows 10 Home
- Operating System Version: 20H2
- Operating System Build: 19042.867
- NGSolve Version: NGSolve-6.2.2101-140-g62e21dad8
- NGSolve Version: 3.7.9
-Ben
Attachments:
Last edit: 3 years 7 months ago by bqprkr.
3 years 7 months ago #3609
by bqprkr
Replied by bqprkr on topic Need Help Diagnosing Mesh Loading Bug
Hey Everyone,
As a first step, I just update NGSolve via git to NGSolve-6.2.2102-21-g7a7c427 on the Linux distro I am running right on now. That seems to have fixed the issue. Otherwise, the Python version remains the same. Having said that, I'm fine closing this issue as fixed.
-Ben
As a first step, I just update NGSolve via git to NGSolve-6.2.2102-21-g7a7c427 on the Linux distro I am running right on now. That seems to have fixed the issue. Otherwise, the Python version remains the same. Having said that, I'm fine closing this issue as fixed.
-Ben
Time to create page: 0.090 seconds