CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (
-   -   Character expressions in gmsh? (

ericnutsch January 22, 2010 00:21

Character expressions in gmsh?
How does one define a character expression then call it in gmsh?

This code works:
Printf ("the variable is %g", var);

This code doesnt:
Printf ("the variable is %s", "fish");

I have had zero luck with Sprintf

I have considered that I am asking too much of the gmsh code, but it doesnt make sense for all the options and functions to be there if character expressions cant even be printed to the screen. Thoughts?

Thanks for your help!

(does it bother any one else that gmsh strings are really arrays and gmsh character expressions are really strings?)

All times are GMT -4. The time now is 21:12.