Characteristic length not set correctly on GEO files
I bisected this behaviour back to 826526cd ("t5.cpp", 2017-11-14). With the attached file: spherical_segment.geo, there are many errors of the form Error : Wrong mesh element size lc = 0 (lcmin = 0, lcmax = 1e+22
during 2D mesh generation.
I believe this is because lc
is no longer being set to LC_MAX
in the case that myGmshSurface
is non-null in the parser (i.e. after the PolarSphere
statement) -- this was removed in the revision above, and only added to the addVertex()
method that does not take a surface. This patch just adds that behaviour back to the other overload of the addVertex()
method.
The meshing still seems incorrect between the latest version and e.g. gmsh 3.0.6, but that's a secondary issue here...