[Gmsh] BDS_Mesh:: swap_edge: Segmentation Fault

Chaman Singh Verma csv610 at gmail.com
Thu May 28 12:33:27 CEST 2009


Hello ,

After painful debugging I found the following piece of code, which made me
confused.

  if(e->faces(0)) {
    g1 = e->faces(0)->g;
    del_face(e->faces(0));
  }

  // not a bug !!!
  if(e->faces(0)) {
    g2 = e->faces(0)->g;
    del_face(e->faces(0));
  }


Interestingly, commend say, it is not bug. Isn't it the duplication and
trying to remove the
same face twice.

I get segmenation fault  for the second {    }  execution.

Can Someone explain what is happening ?

csv
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20090528/6b0a6d46/attachment.html>