On 15 Mar 2013, at 09:38, trophime <[email protected]> wrote:
> 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? > Yes. You can access all the options either by setting them in a script (Mesh.SecondOrderLinear=1;), or on the command line gmsh -string "Mesh.SecondOrderLinear=1;" -refine ... > 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@il : [email protected] > ________________________________________________________________________ > > > _______________________________________________ > gmsh mailing list > [email protected] > http://www.geuz.org/mailman/listinfo/gmsh -- Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine _______________________________________________ gmsh mailing list [email protected] http://www.geuz.org/mailman/listinfo/gmsh
