Bug with including end value of for loop
Hi, for loops in gmsh appear to have a threshold over which they include the final value. This loop, and using step values greater than 0.018, will loop through all values of the set as expected:
For currentvalue In {0.018:0.18:0.018}
Printf("%.4f",currentvalue);
nextvalue=currentvalue+0.018;
Printf("The next value will be %.4f",nextvalue);
EndFor
This loop, and using step values smaller than 0.017, will loop through all but the last value of the set which is not expected:
For currentvalue In {0.017:0.17:0.017}
Printf("%.4f",currentvalue);
nextvalue=currentvalue+0.017;
Printf("The next value will be %.4f",nextvalue);
EndFor
This is occurring with gmsh 4.0.1 Linux x64.
Edited by Jeremias Gonzalez