Skip to content

Commit 9e67267

Browse files
sbryngelsonclaude
andcommitted
Fix f_check_interpolation_2D/3D returning only last edge's result
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 84c46e0 commit 9e67267

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/common/m_model.fpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,9 @@ contains
746746
do j = 1, boundary_edge_count
747747
l1 = sqrt((boundary_v(j, 2, 1) - boundary_v(j, 1, 1))**2 + &
748748
(boundary_v(j, 2, 2) - boundary_v(j, 1, 2))**2)
749-
750-
if ((l1 > cell_width)) then
749+
if (l1 > cell_width) then
751750
interpolate = .true.
752-
else
753-
interpolate = .false.
751+
return
754752
end if
755753
end do
756754

@@ -794,8 +792,7 @@ contains
794792
(edge_l(2) > cell_width) .or. &
795793
(edge_l(3) > cell_width)) then
796794
interpolate = .true.
797-
else
798-
interpolate = .false.
795+
return
799796
end if
800797
end do
801798

0 commit comments

Comments
 (0)