Skip to content
Snippets Groups Projects
Verified Commit 24eb4f8c authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

fix: issue when airfoil defined but not used (closes #7)

parent bd43d392
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,9 @@ function [cl, cd] = getclcd(self, aoaVect, reyVect, i)
for i = 1:length(Af)
idx = (iAf == i);
[cl(idx), cd(idx)] = Af(i).Polar.getcoeffs(aoaVect(idx), reyVect(idx));
if idx ~= 0
[cl(idx), cd(idx)] = Af(i).Polar.getcoeffs(aoaVect(idx), reyVect(idx));
end
end
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment