[Gmsh] refining mesh

trophime christophe.trophime at lncmi.cnrs.fr
Fri Mar 15 09:38:40 CET 2013


Hi,
I am trying to use the API to refine mesh by using:

newGmshModel->refineMesh( CTX::instance()->mesh.secondOrderLinear );

It does not behave like calling refinement from command line:

gmsh -refine *.msh

I suspect the problem is due to the value of
CTX::instance()->mesh.secondOrderLinear. The default value is "0" as far
as I have understood. I cannot figure out where the value is set to "1"
when running from commandline. But to generate the same mesh with
techniques mesh.secondOrderLinear has to be set to "1".

Is this right?

Best
C

-- 


Christophe TROPHIME
Research Engineer

LNCMI
CNRS - LNCMI
25, rue des Martyrs
BP 166
38042 GRENOBLE Cedex 9
FRANCE
CNRS

Tel : +33 (0)4 76 88 90 02 
Fax : +33 (0) 4 76 88 10 01
Office U 19 
M at il : christophe.trophime at lncmi.cnrs.fr 
________________________________________________________________________