[Gmsh] Bug in meshGRegion.cpp - setting Netgen's characteristic length

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Sep 17 18:20:14 CEST 2009


Dieter Pahr wrote:
> I found a small bug in the gmsh code which is related to:
> http://www.geuz.org/pipermail/gmsh/2006/001836.html
> The bug is in meshGRegion.cpp (set -clmax for netgen) :   BUG L619 : 
> NgAddOn_GenerateVolumeMesh(ngmesh, CTX::instance()->lc);
> CORRECT : NgAddOn_GenerateVolumeMesh(ngmesh, CTX::instance()->mesh.lcMax);
> BUG L649 : NgAddOn_OptimizeVolumeMesh(ngmesh, CTX::instance()->lc);
> CORRECT : NgAddOn_OptimizeVolumeMesh(ngmesh, CTX::instance()->mesh.lcMax);

Hmm, by default (if you do not set it by hand), 
CTX::instance()->mesh.lcMax is set to huge value (1e+22)... which Gmsh 
basically interprets as "infinity". Is this really what we want to pass 
to Netgen?


> 
> As far as I saw -clmin and -clsca is not implemented so far for netgen 
> but could be easily done.
> 
> Regards from Vienna - Dieter
> 


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