From 0995fa2ae733a5f7df81c6d9eb0cae7b801b9e2e Mon Sep 17 00:00:00 2001
From: Thomas Lambert <t.lambert@uliege.be>
Date: Wed, 13 Mar 2024 14:26:12 +0100
Subject: [PATCH] fix(Airfoil): error in coord interp

---
 +af_tools/@Airfoil/interpairfoil.m | 2 +-
 CHANGELOG.md                       | 9 ++++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/+af_tools/@Airfoil/interpairfoil.m b/+af_tools/@Airfoil/interpairfoil.m
index 58fe57e..1e70705 100644
--- a/+af_tools/@Airfoil/interpairfoil.m
+++ b/+af_tools/@Airfoil/interpairfoil.m
@@ -65,7 +65,7 @@ function self = interpairfoil(Airfoil1, Airfoil2, weightAirfoil2)
 
     if Airfoil1 == Airfoil2
         self.name = Airfoil1.name;
-        self.coord = Airfoil1.Polar;
+        self.coord = Airfoil1.coord;
         self.upper = Airfoil1.upper;
         self.lower = Airfoil1.lower;
         self.Polar = Airfoil1.Polar;
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 925b257..48fa867 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Fixed
 
+## [4.4.2] - 2024-03-13
+
+### Fixed
+
+- Wrong coordinates array for interpolated Airfoil
+
 ## [4.4.1] - 2024-03-13
 
 ### Fixed
@@ -158,7 +164,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 - Initial release
 
-[Unreleased]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v4.4.1...master
+[Unreleased]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/v4.4.2...master
+[4.4.2]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/4.4.1...v4.4.2
 [4.4.1]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/4.4.0...v4.4.1
 [4.4.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/4.3.0...v4.4.0
 [4.3.0]: https://gitlab.uliege.be/am-dept/matlab_airfoil_toolbox/-/compare/4.2.1...v4.3.0
-- 
GitLab