24 Mar
2017
24 Mar
'17
4:58 p.m.
On 24 Mar 2017, at 16:50, Buesing, Henrik <HBuesing@eonerc.rwth-aachen.de> wrote:
Ah, well. I was using int where I should have used float. Thus, my dz of the extruded mesh turned into zero.
To track these kind of things down, you can run your python program as: python -Qwarnall program.py Now you will get warnings if int division is being assumed. You can also do: from __future__ import division at the top of your file (I recommend you do this). Now a/b is floating point division, and a//b is old-style "integer" division. See https://www.python.org/dev/peps/pep-0238/ for more information. Lawrence