Meshing: Round interpolated profile RK values (2 decimal digits), to avoid XX.000000000001 values

new_design_pol
Dylan Jeannin 2026-09-01 16:56:06 +02:00
parent 70128bbdd1
commit c3288b44bb
1 changed files with 2 additions and 2 deletions

View File

@ -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)