Skip to content

Commit 9cbdb06

Browse files
Merged with master
2 parents ba94a32 + cd429e1 commit 9cbdb06

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/simulation/m_data_output.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ contains
10621062

10631063
integer, intent(in) :: time_step
10641064

1065+
$:GPU_UPDATE(host='[patch_ib(1:num_ibs)]')
1066+
10651067
if (parallel_io) then
10661068
call s_write_parallel_ib_state(time_step)
10671069
else

src/simulation/m_ibm.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,9 +936,9 @@ contains
936936
end do
937937
end if
938938

939-
$:GPU_PARALLEL_LOOP(private='[ib_idx, ib_idx_temp, encoded_ib_idx, fluid_idx, radial_vector, local_force_contribution, &
940-
& cell_volume, local_torque_contribution, dynamic_viscosity, viscous_stress]', copy='[forces, &
941-
& torques]', copyin='[dynamic_viscosities]', collapse=3)
939+
$:GPU_PARALLEL_LOOP(private='[i, j, k, l, ib_idx, ib_idx_temp, encoded_ib_idx, fluid_idx, radial_vector, &
940+
& local_force_contribution, cell_volume, local_torque_contribution, dynamic_viscosity, &
941+
& viscous_stress]', copy='[forces, torques]', copyin='[dynamic_viscosities]', collapse=3)
942942
do i = 0, m
943943
do j = 0, n
944944
do k = 0, p

src/simulation/m_start_up.fpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,6 +1494,13 @@ contains
14941494
call MPI_SENDRECV(end_val, 1, mpi_p, send_neighbor, ${TAG + 1}$, recv_val, 1, mpi_p, recv_neighbor, &
14951495
& ${TAG + 1}$, MPI_COMM_WORLD, MPI_STATUS_IGNORE, ierr)
14961496
end_val = recv_val
1497+
1498+
! protect from looping back around on yourself multiple times
1499+
if (f_approx_equal(beg_val, ${X}$_cb(${DIM}$)) .or. f_approx_equal(end_val, ${X}$_cb(-1))) then
1500+
beg_val = -huge(0._wp)
1501+
end_val = huge(0._wp)
1502+
exit
1503+
end if
14971504
end do
14981505
neighbor_domain_${X}$%beg = beg_val
14991506
neighbor_domain_${X}$%end = end_val

tests/coverage_map.json.gz

-5 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)