mirror of https://gitlab.com/pamhyr/pamhyr2
Meshing: Round interpolated profile RK values (2 decimal digits), to avoid XX.000000000001 values
parent
70128bbdd1
commit
c3288b44bb
|
|
@ -137,9 +137,9 @@ class InternalMeshing(AMeshingTool):
|
|||
p.points[k].z = pt1[k].z + \
|
||||
dj*(pt2[k].z -
|
||||
pt1[k].z)
|
||||
p.rk = profiles[i].rk + \
|
||||
p.rk = round(profiles[i].rk + \
|
||||
dj*(profiles[i+1].rk -
|
||||
profiles[i].rk)
|
||||
profiles[i].rk), 2)
|
||||
p.name = f'interpol{p.rk}'
|
||||
p.interpolated = True
|
||||
new_profiles2.append(p)
|
||||
|
|
|
|||
Loading…
Reference in New Issue