Skip to content

Commit a6ab163

Browse files
author
Daniel Vickers
committed
apparently cray compilers use the device copies of integer variables for loop bounds
1 parent 859ca73 commit a6ab163

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/simulation/m_ib_patches.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,6 @@ contains
391391
real(wp) :: corner_distance !< Equation of state parameters
392392
real(wp), dimension(1:3) :: xy_local !< x and y coordinates in local IB frame
393393
real(wp), dimension(1:2) :: length, center !< x and y coordinates in local IB frame
394-
real(wp), dimension(1:3,1:3) :: inverse_rotation
395394
396395
! Transferring the rectangle's centroid and length information
397396

src/simulation/m_ibm.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ contains
7676

7777
call nvtxStartRange("SETUP-IBM-MODULE")
7878

79+
! GPU routines require updated cell centers
80+
$:GPU_UPDATE(device='[num_ibs, num_gbl_ibs, x_cc, y_cc, dx, dy, x_domain, y_domain, ib_bc_x%beg, ib_bc_y%beg]')
81+
if (p /= 0) then
82+
$:GPU_UPDATE(device='[z_cc, dz, z_domain, ib_bc_z%beg]')
83+
end if
7984
$:GPU_UPDATE(device='[patch_ib(1:num_ibs)]')
8085

8186
! do all set up for moving immersed boundaries
@@ -98,11 +103,6 @@ contains
98103
end if
99104
#endif
100105

101-
! GPU routines require updated cell centers
102-
$:GPU_UPDATE(device='[num_ibs, num_gbl_ibs, x_cc, y_cc, dx, dy, x_domain, y_domain, ib_bc_x%beg, ib_bc_y%beg]')
103-
if (p /= 0) then
104-
$:GPU_UPDATE(device='[z_cc, dz, z_domain, ib_bc_z%beg]')
105-
end if
106106
call s_update_ib_lookup()
107107

108108
! recompute the new ib_patch locations

0 commit comments

Comments
 (0)