Skip to content

Commit aa3b39e

Browse files
committed
last intent
1 parent 48aa981 commit aa3b39e

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

src/simulation/m_bubbles_EL.fpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ contains
401401
!! @param save_count File identifier
402402
subroutine s_restart_bubbles(bub_id, save_count)
403403

404-
integer :: bub_id, save_count
404+
integer, intent(inout) :: bub_id, save_count
405405

406406
character(LEN=path_len + 2*name_len) :: file_loc
407407

@@ -1460,7 +1460,7 @@ contains
14601460
function particle_in_domain(pos_part)
14611461

14621462
logical :: particle_in_domain
1463-
real(wp), dimension(3) :: pos_part
1463+
real(wp), dimension(3), intent(in) :: pos_part
14641464

14651465
! 2D
14661466
if (p == 0 .and. cyl_coord .neqv. .true.) then
@@ -1513,7 +1513,7 @@ contains
15131513
function particle_in_domain_physical(pos_part)
15141514

15151515
logical :: particle_in_domain_physical
1516-
real(wp), dimension(3) :: pos_part
1516+
real(wp), dimension(3), intent(in) :: pos_part
15171517

15181518
particle_in_domain_physical = ((pos_part(1) < x_cb(m)) .and. (pos_part(1) >= x_cb(-1)) .and. &
15191519
(pos_part(2) < y_cb(n)) .and. (pos_part(2) >= y_cb(-1)))
@@ -1589,7 +1589,7 @@ contains
15891589
!! @param q_time Current time
15901590
subroutine s_write_lag_particles(qtime)
15911591

1592-
real(wp) :: qtime
1592+
real(wp), intent(in) :: qtime
15931593
integer :: k
15941594

15951595
character(LEN=path_len + 2*name_len) :: file_loc
@@ -1631,7 +1631,8 @@ contains
16311631
!! @param q_time Current time
16321632
subroutine s_write_void_evol(qtime)
16331633

1634-
real(wp) :: qtime, volcell, voltot
1634+
real(wp), intent(in) :: qtime
1635+
real(wp) :: volcell, voltot
16351636
real(wp) :: lag_void_max, lag_void_avg, lag_vol
16361637
real(wp) :: void_max_glb, void_avg_glb, vol_glb
16371638

@@ -1704,11 +1705,12 @@ contains
17041705
subroutine s_write_restart_lag_bubbles(t_step)
17051706

17061707
! Generic string used to store the address of a particular file
1708+
integer, intent(in) :: t_step
1709+
17071710
character(LEN=path_len + 2*name_len) :: file_loc
17081711
logical :: file_exist
1709-
1710-
integer :: i, k, t_step
17111712
integer :: bub_id, tot_part, tot_part_wrtn, npart_wrtn
1713+
integer :: i, k
17121714

17131715
#ifdef MFC_MPI
17141716
! For Parallel I/O

src/simulation/m_qbmm.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ contains
823823
real(wp), dimension(startx:, starty:, startz:, 1:, 1:), intent(inout) :: pb, rhs_pb
824824
real(wp), dimension(startx:, starty:, startz:, 1:, 1:), intent(inout) :: mv, rhs_mv
825825
type(int_bounds_info), intent(in) :: ix, iy, iz
826-
real(wp), dimension(startx:, starty:, startz:) :: nbub_sc !> Unused Variable not sure what to put as intent
826+
real(wp), dimension(startx:, starty:, startz:), intent(inout) :: nbub_sc
827827

828828
real(wp), dimension(nmom) :: moms, msum
829829
real(wp), dimension(nnode, nb) :: wght, abscX, abscY, wght_pb, wght_mv, wght_ht, ht

src/simulation/m_surface_tension.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ contains
7070
flux_src_vf, &
7171
id, isx, isy, isz)
7272

73-
type(scalar_field), dimension(sys_size) :: q_prim_vf !> unused so unsure what intent to give it
73+
type(scalar_field), dimension(sys_size), intent(in) :: q_prim_vf
7474
real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) :: vSrc_rsx_vf
7575
real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) :: vSrc_rsy_vf
7676
real(wp), dimension(-1:, 0:, 0:, 1:), intent(in) :: vSrc_rsz_vf

0 commit comments

Comments
 (0)