If condition sensitive to the condition order, or never satisfied
Hi!
It's the first time I post an issue about GMSH. Sorry for bothering and hope I'm posting at the right place!
Well I encounter issues on GMSG 4.9.3. with "If conditions". First I already realized that the order of the If conditions can affect your geometry. For example if I have:
If (condition_1) Instruction_1; ElseIf (condition_2) Instruction_2; EndIf
the result can be different if I write:
If (condition_2) Instruction_2; ElseIf (condition_1) Instruction_1; EndIf
It happens often when there is more than 2 conditions.
Secondly, in the attached script, I aim to create the lateral side of a cylinder, composed of 16 surfaces that I define in a "For loop". All the surfaces are well created except the last one.
The last (If condition) is never satisfied. It is satisfied if I switch the 2 last "If conditions". In the end, my last Line Loop (or Curve loop) is always wrong. However, using the GUI to create my last surface, it works and the identifications numbers of the four lines are the same I use, with the good orientation signs...
I spend few hours trying to solve that, I start to think it is related with the "If conditions" issues.
Any suggestions?