[Gmsh] Version 2 output in batch mode?

Christophe Geuzaine geuzaine at acm.caltech.edu
Thu Apr 14 22:12:08 CEST 2005


Martin Lüthi wrote:
> Martin Lüthi writes:
>  > How can I specify in batch mode that I want to write a *.msh file in
>  > version 2.0? 
> 
> OK, here comes a trivial patch. Mesh version 2 output can now be
> specified with "-format msh2".
> 
> 

You can also use the '-string' command line option, e.g.,

gmsh -string "Mesh.MshFileVersion=2;" file.geo -3

or put "Mesh.MshFileVersion=2;" in your option file ($HOME/.gmsh-options).

Christophe

-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org