[Gmsh] Question about the command line

michael.asam at infineon.com michael.asam at infineon.com
Wed Jun 11 10:56:50 CEST 2014

Hi Alexis,

you can pass a constant variable value to Gmsh with its command line option
-setnumber MyConstant 54321

For strings you can use
-setstring name value


From: gmsh [mailto:gmsh-bounces at ace20.montefiore.ulg.ac.be] On Behalf Of Alexis PACHOLIK
Sent: 03 June, 2014 19:17
To: gmsh at geuz.org
Subject: [Gmsh] Question about the command line

Hello all,
I'd like to know if I can get back an integer given in command line. For example, if I put "gmsh myfile.msh myscript.sh 54321" in the command line where myfile.msh is my mesh and myscript.sh is a script for postprocessing, how can I use the integer 54321 in the file myscript.sh (if possible)?  I'm not aware of something like argv[] or else...
Thank you and regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20140611/b04a2813/attachment.html>