[Gmsh] optimizing several times through command line & passing args
Christophe Geuzaine
cgeuzaine at ulg.ac.be
Wed Nov 4 14:25:33 CET 2015
> On 03 Nov 2015, at 16:48, Francois Lemery <francois.lemery at gmail.com> wrote:
>
> Hi,
> 2 questions:
>
> 1: How would I optimize a mesh several times with the netgen algorithm? Doing
> > gmsh -3 -optimize_netgen file.geo
> and similar variants only seems to allow me to do this once. I tried
> > gmsh -3 -optimize_netgen file.msh
> which did not work
>
I've added a new command
OptimizeMesh "algorithm";
in the parser (SVN rev 22185), so you can now simply add something like
// ... your geometry ...
Mesh 3;
Optimize "Netgen";
Optimize "Gmsh";
in your .geo file.
@Alexander - this might also allow you to fix your optimization problem, e.g. by running the two optimizers in sequence.
Christophe
> 2: Is it possible to feed gmsh an argument from command line like in the typical c(++) way (e.g. int main(int argc, char** argv))?
>
> Thank you!
> François
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> 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
Tetrahedron V, July 4-5 2016: http://tetrahedron.montefiore.ulg.ac.be
Free software: http://gmsh.info | http://getdp.info | http://onelab.info