Skip to content

Commit 6d7f39c

Browse files
author
Daniel J Vickers
committed
Fixed airfoil comparison
1 parent c304b37 commit 6d7f39c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/simulation/m_compute_levelset.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ contains
239239
xyz_local = matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordinates
240240
xyz_local = xyz_local - offset ! airfoils are a patch that require a centroid offset
241241

242-
if (xyz_local(2) >= center(2)) then
242+
if (xyz_local(2) >= 0._wp) then
243243
do k = 1, Np
244244
dist_vec(1) = xyz_local(1) - airfoil_grid_u(k)%x
245245
dist_vec(2) = xyz_local(2) - airfoil_grid_u(k)%y

0 commit comments

Comments
 (0)