The easy guess is that you're writing to airfoil_d out of bounds, and airfoil_d happens to be adjacent to blade_d in memory such that this results in overwriting elements of blade_d.

The general solution to this problem is to check that the array indices are valid before using them to access the arrays. Typically, this is done by comparing the index to the capacity (as in number of elements) of the given array.