include option no read airfoil_coords
@@ -137,6 +137,7 @@ class PolarCorrection(generator_interface.BaseGenerator):
cab = algebra.crv2rotation(structural_kstep.psi[ielem, inode_in_elem, :])
cgb = np.dot(cga, cab)
+ if not cd_from_cl:
airfoil_coords = aerogrid.aero_dict['airfoils'][str(aero_dict['airfoil_distribution'][ielem, inode_in_elem])]
dir_span, span, dir_chord, chord = span_chord(i_n, aero_kstep.zeta[isurf])
