[Gmsh] write a .pos file and read it back -> different results

Al Danial al.danial at gmail.com
Mon May 24 07:09:35 CEST 2004


On Sun, 23 May 2004 13:21:24 -0700, Christophe Geuzaine

> > I start with this file (called "A.pos"):
> >
> > View "vname_A" {
> > ST(0.5,0.5,0.0,1.0,0.5,0.0,1.0,1.0,0.0){1,2,3,4,5,6,7,8,9,10};
> > ST(0.5,0.5,0.0,1.0,1.0,0.0,0.5,1.0,0.0){2,3,4,5,6,7,8,9,10,11};
> > };
> >

> Your first file is wrong: for a scalar triangle the number of values has
> to be a multiple of 3 (1 number for each node, times the number of steps).
> 
> You could for example have:
> 
> View "vname_A" {
> ST(0.5,0.5,0.0,1.0,0.5,0.0,1.0,1.0,0.0){1,2,3,4,5,6,7,8,9};
> ST(0.5,0.5,0.0,1.0,1.0,0.0,0.5,1.0,0.0){2,3,4,5,6,7,8,9,10};
> };

wow, off by one... but in the wrong file.  Thanks, it works great now.   -- Al