Skip to content

Commit 6dcdd5f

Browse files
committed
small IBM bug fixes
1 parent 8b68faf commit 6dcdd5f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/simulation/m_ibm.fpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ contains
212212

213213
! Calculate velocity of ghost cell
214214
if (gp%slip) then
215-
norm = gp%ip_loc - physical_loc !
216-
buf = sqrt(sum(norm**2))
217-
norm = norm/buf
215+
norm = levelset_norm%sf(j, k, l, patch_id)
218216
vel_norm_IP = sum(vel_IP*norm)*norm
219217
vel_g = vel_IP - vel_norm_IP
220218
else

src/simulation/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ contains
664664

665665
call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_IB_DATA%view, &
666666
'native', mpi_info_int, ierr)
667-
call MPI_FILE_READ(ifile, MPI_IO_IB_DATA%var%sf, data_size, &
667+
call MPI_FILE_READ(ifile, MPI_IO_IB_DATA%var%sf, data_size * num_ibs, &
668668
MPI_INTEGER, status, ierr)
669669

670670
else

0 commit comments

Comments
 (0)