Skip to content

Commit 2f0e1c1

Browse files
Updated pressure communication for multi-node case
1 parent a216ed4 commit 2f0e1c1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/simulation/m_ibm.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,9 @@ contains
998998
! by Archana Sridhar and Jesse Capecelatro
999999
subroutine s_compute_ib_forces(pressure)
10001000
1001-
real(wp), dimension(0:m, 0:n, 0:p), intent(in) :: pressure
1001+
real(wp), dimension(idwbuff(1)%beg:idwbuff(1)%end, &
1002+
idwbuff(2)%beg:idwbuff(2)%end, &
1003+
idwbuff(3)%beg:idwbuff(3)%end), intent(in) :: pressure
10021004
10031005
integer :: i, j, k, ib_idx
10041006
real(wp), dimension(num_ibs, 3) :: forces, torques
@@ -1061,8 +1063,6 @@ contains
10611063
patch_ib(i)%torque(:) = matmul(patch_ib(i)%rotation_matrix_inverse, torques(i, :)) ! torques must be computed in the local coordinates of the IB
10621064
end do
10631065
1064-
print *, forces(1, 1:2)
1065-
10661066
end subroutine s_compute_ib_forces
10671067
10681068
!> Subroutine to deallocate memory reserved for the IBM module

src/simulation/m_time_steppers.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ contains
611611
if (ib) then
612612
! check if any IBMS are moving, and if so, update the markers, ghost points, levelsets, and levelset norms
613613
if (moving_immersed_boundary_flag) then
614-
call s_compute_ib_forces(q_prim_vf(E_idx)%sf(0:m, 0:n, 0:p)) ! compute the force and torque on the IB from the fluid
614+
call s_compute_ib_forces(q_prim_vf(E_idx)%sf) ! compute the force and torque on the IB from the fluid
615615

616616
do i = 1, num_ibs
617617
if (s == 1) then

0 commit comments

Comments
 (0)