[Gmsh] Windows, Ubuntu give different meshes

Christophe Geuzaine cgeuzaine at uliege.be
Fri Jun 28 08:04:52 CEST 2019



> On 27 Jun 2019, at 03:33, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> 
> I have been testing with the demo file cube.geo:
> 
> lc = 0.3;
> Point(1) = {0.0,0.0,0.0,lc};
> Point(2) = {1,0.0,0.0,lc};
> Point(3) = {1,1,0.0,lc};
> Point(4) = {0,1,0.0,lc};
> Line(1) = {4,3};
> Line(2) = {3,2};
> Line(3) = {2,1};
> Line(4) = {1,4};
> Line Loop(5) = {2,3,4,1};
> Plane Surface(6) = {5};
> tmp[] = Extrude {0,0.0,1} {
>   Surface{6};
> };
> Physical Volume(1) = tmp[1];
> 
> I generate the mesh file at the command line like this:
> 
> gmsh -3 cube.geo
> 
> on a Windows 7 machine and on Ubuntu 16.04.  The gmsh version is 4.3.0.
> 
> I find that the meshes created on the two systems are a bit different.  On Windows the mesh has 137 nodes and 372 elements, while on Ubuntu it has 136 nodes and 373 elements.
> 
> Should I be concerned about this?

No, on the same machine the meshes should be identical, but across OSes (and different compilers) small variations are normal.

Christophe


> 
> Thanks
> Gib
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list