[Gmsh] If - EndIf issue
Sidor, Adam T
adam.sidor at gatech.edu
Thu Oct 12 17:27:09 CEST 2017
I am encountering an issue with using If-EndIf statements. If the statement evaluates to "true", the code executes, but then a warning is generated in the console about an "Orphan EndIf". An example .geo file is below. The first If-EndIf block (correctly) does not execute the print statement and does not generate any warnings. The second If-EndIf (correctly) executes the print statement but generates the warning.
If ( 0 )
Printf("this code will not execute");
If ( 1 )
Printf("this code will execute but will yield an Orphan EndIf Warning");
Thanks in advance for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gmsh