FIX: Corrected integer division in set_ffd_design_var.py for Python 3… by emaberman · Pull Request #2571 · su2code/SU2

Proposed Changes

This pull request addresses a TypeError in the set_ffd_design_var.py script. The change replaces a floating-point division (/) with integer division (//) to ensure that the arguments passed to the range() function are of the correct type.
This change fixes a bug where the script would fail with the error TypeError: 'float' object cannot be interpreted as an integer. This issue occurs in Python 3 environments because the / operator always produces a float, even when the division result is a whole number.

PR Checklist

Put an X by all that apply. You can fill this out after submitting the PR. If you have any questions, don't hesitate to ask! We want to help. These are a guide for you to know what the reviewers will be looking for in your contribution.

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
    y