Skip to content

Commit 87a0ad6

Browse files
committed
fix return in accelerator statements
1 parent 378a24d commit 87a0ad6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/simulation/m_pressure_relaxation.fpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ contains
101101

102102
end subroutine s_relax_cell_pressure
103103

104-
!> Check if pressure relaxation is needed for this cell
104+
!> Check if pressure relaxation is needed for this cell
105105
pure logical function s_needs_pressure_relaxation(q_cons_vf, j, k, l)
106106
!$acc routine seq
107-
107+
108108
type(scalar_field), dimension(sys_size), intent(in) :: q_cons_vf
109109
integer, intent(in) :: j, k, l
110110
integer :: i
@@ -114,7 +114,6 @@ contains
114114
do i = 1, num_fluids
115115
if (q_cons_vf(i + advxb - 1)%sf(j, k, l) > (1._wp - sgm_eps)) then
116116
s_needs_pressure_relaxation = .false.
117-
return
118117
end if
119118
end do
120119

0 commit comments

Comments
 (0)