We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23a4993 commit ee9b269Copy full SHA for ee9b269
1 file changed
src/simulation/m_ibm.fpp
@@ -119,12 +119,14 @@ contains
119
call s_find_num_ghost_points(num_gps)
120
if (moving_immersed_boundary_flag) then
121
call s_mpi_allreduce_integer_sum(num_gps, max_num_gps)
122
- num_gps = min(max_num_gps*2, (m + 1)*(n + 1)*(p + 1))
+ max_num_gps = min(max_num_gps*2, (m + 1)*(n + 1)*(p + 1))
123
+ else
124
+ max_num_gps = num_gps
125
end if
126
127
! set the size of the ghost point arrays to be the amount of points total, plus a factor of 2 buffer
128
$:GPU_UPDATE(device='[num_gps]')
- @:ALLOCATE(ghost_points(1:num_gps))
129
+ @:ALLOCATE(ghost_points(1:max_num_gps))
130
131
$:GPU_ENTER_DATA(copyin='[ghost_points]')
132
call s_find_ghost_points(ghost_points)
0 commit comments