Skip to content

Commit 3c8cf71

Browse files
author
Benjamin Wilfong
committed
started fixing gpu errors
1 parent bbdb0fc commit 3c8cf71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/simulation/m_viscous.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ module m_viscous
2121
s_finalize_viscous_module
2222

2323
type(int_bounds_info) :: iv
24-
24+
type(int_bounds_info) :: is1, is2, is3
25+
!$acc declare create(is1, is2, is3, iv)
2526
real(kind(0d0)), allocatable, dimension(:) :: gammas, pi_infs
2627
!$acc declare create(gammas, pi_infs)
2728

@@ -1282,7 +1283,6 @@ subroutine s_reconstruct_cell_boundary_values_visc(v_vf, vL_x_flat, vL_y_flat, v
12821283

12831284
integer :: i, j, k, l
12841285

1285-
type(int_bounds_info) :: is1, is2, is3
12861286
type(int_bounds_info) :: ix, iy, iz
12871287
! Reconstruction in s1-direction ===================================
12881288

@@ -1377,4 +1377,4 @@ subroutine s_finalize_viscous_module()
13771377
allocate (Res(1:2, 1:maxval(Re_size)))
13781378
end subroutine s_finalize_viscous_module
13791379

1380-
end module m_viscous
1380+
end module m_viscous

0 commit comments

Comments
 (0)