Skip to content

Commit 91b256f

Browse files
Ran formatting
1 parent bd6096b commit 91b256f

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/common/m_ib_patches.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ contains
139139

140140
integer, intent(in) :: patch_id
141141
integer, dimension(0:m, 0:n, 0:p), intent(inout) :: ib_markers_sf
142-
142+
143143
real(wp), dimension(1:2) :: center
144144
real(wp) :: radius
145145

@@ -540,9 +540,9 @@ contains
540540
xy_local = matmul(inverse_rotation, xy_local)
541541
542542
if (-0.5_wp*length(1) <= xy_local(1) .and. &
543-
0.5_wp*length(1) >= xy_local(1) .and. &
543+
0.5_wp*length(1) >= xy_local(1) .and. &
544544
-0.5_wp*length(2) <= xy_local(2) .and. &
545-
0.5_wp*length(2) >= xy_local(2)) then
545+
0.5_wp*length(2) >= xy_local(2)) then
546546
547547
! Updating the patch identities bookkeeping variable
548548
ib_markers_sf(i, j, 0) = patch_id
@@ -569,7 +569,7 @@ contains
569569
! Generic loop iterators
570570
integer :: i, j, k
571571
real(wp) :: radius
572-
real(wp), dimension(1:3):: center
572+
real(wp), dimension(1:3) :: center
573573
574574
!! Variables to initialize the pressure field that corresponds to the
575575
!! bubble-collapse test case found in Tiwari et al. (2013)

src/post_process/m_data_input.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impure subroutine s_read_ib_data_files(file_loc_base, t_step)
158158
integer, dimension(MPI_STATUS_SIZE) :: status
159159
integer(KIND=MPI_OFFSET_KIND) :: disp
160160
integer :: m_MOK, n_MOK, p_MOK, MOK, WP_MOK, save_index
161-
161+
162162
#endif
163163
if (.not. ib) return
164164

@@ -179,7 +179,7 @@ impure subroutine s_read_ib_data_files(file_loc_base, t_step)
179179
p_MOK = int(p_glb + 1, MPI_OFFSET_KIND)
180180
MOK = int(1._wp, MPI_OFFSET_KIND)
181181
WP_MOK = int(8._wp, MPI_OFFSET_KIND)
182-
save_index = t_step / t_step_save ! get the number of saves done to this point
182+
save_index = t_step/t_step_save ! get the number of saves done to this point
183183

184184
data_size = (m + 1)*(n + 1)*(p + 1)
185185
var_MOK = int(sys_size + 1, MPI_OFFSET_KIND)

src/simulation/m_data_output.fpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,16 +1022,16 @@ contains
10221022

10231023
!Writeib data
10241024
if (ib) then
1025-
write (file_loc, '(A)') 'ib.dat'
1026-
file_loc = trim(case_dir)//'/restart_data'//trim(mpiiofs)//trim(file_loc)
1027-
call MPI_FILE_OPEN(MPI_COMM_WORLD, file_loc, ior(MPI_MODE_WRONLY, MPI_MODE_CREATE), &
1028-
mpi_info_int, ifile, ierr)
1029-
1025+
write (file_loc, '(A)') 'ib.dat'
1026+
file_loc = trim(case_dir)//'/restart_data'//trim(mpiiofs)//trim(file_loc)
1027+
call MPI_FILE_OPEN(MPI_COMM_WORLD, file_loc, ior(MPI_MODE_WRONLY, MPI_MODE_CREATE), &
1028+
mpi_info_int, ifile, ierr)
1029+
10301030
var_MOK = int(sys_size + 1, MPI_OFFSET_KIND)
1031-
disp = m_MOK*max(MOK, n_MOK)*max(MOK, p_MOK)*WP_MOK*(var_MOK - 1 + int(t_step / t_step_save))
1031+
disp = m_MOK*max(MOK, n_MOK)*max(MOK, p_MOK)*WP_MOK*(var_MOK - 1 + int(t_step/t_step_save))
10321032

10331033
call MPI_FILE_SET_VIEW(ifile, disp, MPI_INTEGER, MPI_IO_IB_DATA%view, &
1034-
'native', mpi_info_int, ierr)
1034+
'native', mpi_info_int, ierr)
10351035
call MPI_FILE_WRITE_ALL(ifile, MPI_IO_IB_DATA%var%sf, data_size, &
10361036
MPI_INTEGER, status, ierr)
10371037
call MPI_FILE_CLOSE(ifile, ierr)

src/simulation/m_ibm.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ contains
271271
radial_vector = physical_loc - [patch_ib(patch_id)%x_centroid, &
272272
patch_ib(patch_id)%y_centroid, patch_ib(patch_id)%z_centroid]
273273
rotation_velocity = cross_product(matmul(patch_ib(patch_id)%rotation_matrix, patch_ib(patch_id)%angular_vel), radial_vector)
274-
274+
275275
! add only the component of the IB's motion that is normal to the surface
276-
vel_g = vel_g + sum((patch_ib(patch_id)%vel+rotation_velocity)*norm)*norm
276+
vel_g = vel_g + sum((patch_ib(patch_id)%vel + rotation_velocity)*norm)*norm
277277
end if
278278
else
279279
if (patch_ib(patch_id)%moving_ibm == 0) then

0 commit comments

Comments
 (0)