Skip to content

Commit 4198795

Browse files
authored
Merge branch 'master' into master
2 parents 3fdb693 + 67b130b commit 4198795

20 files changed

+66
-54
lines changed

.github/workflows/lint-source.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@ jobs:
2929
run: pip install fortitude-lint ansi2txt
3030

3131
- name: Lint the source code
32-
run: fortitude check --file-extensions=f90,fpp,fypp --ignore=E001,S001,S101,M011,F001,S041,T001,S101 ./src/** || true
32+
run: fortitude check --file-extensions=f90,fpp,fypp --ignore=E001,S001,S101,M011,F001,S041,T001,S101,S102,T002,T011 ./src/** || true
3333

3434
- name: Ensure kind is specified
3535
run: fortitude check --file-extensions=f90,fpp,fypp --select=P001 ./src/**
3636

37+
- name: Ensure subroutines are named
38+
run: fortitude check --file-extensions=f90,fpp,fypp --select=S061 ./src/**
39+
3740
- name: No double precision intrinsics
3841
run: |
3942
! grep -iR 'double_precision\|dsqrt\|dexp\|dlog\|dble\|dabs\|double\ precision\|real(8)\|real(4)\|dprod\|dmin\|dmax\|dfloat\|dreal\|dcos\|dsin\|dtan\|dsign\|dtanh\|dsinh\|dcosh\|d0' --exclude-dir=syscheck --exclude="*nvtx*" --exclude="*precision_select*" ./src/*

src/common/m_checker_common.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ contains
130130
@:PROHIBIT(adv_n .and. (.not. bubbles_euler))
131131
@:PROHIBIT(adv_n .and. num_fluids /= 1)
132132
@:PROHIBIT(adv_n .and. qbmm)
133-
end subroutine
133+
end subroutine s_check_inputs_adv_n
134134

135135
!> Checks constraints on the phase change parameters.
136136
!! Called by s_check_inputs_common for pre-processing and simulation

src/common/m_helper.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ contains
101101
end do
102102
write (*, fmt="(A1)") " "
103103

104-
end subroutine
104+
end subroutine s_print_2D_array
105105

106106
!> Initializes non-polydisperse bubble modeling
107107
subroutine s_initialize_nonpoly
@@ -248,7 +248,7 @@ contains
248248

249249
write (res, '(I0)') i
250250
res = trim(res)
251-
end subroutine
251+
end subroutine s_int_to_str
252252

253253
!> Computes the Simpson weights for quadrature
254254
subroutine s_simpson

src/common/m_mpi_common.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ contains
234234
235235
subroutine s_mpi_gather_data(my_vector, counts, gathered_vector, root)
236236
237-
implicit none
238237
integer, intent(in) :: counts ! Array of vector lengths for each process
239238
real(wp), intent(in), dimension(counts) :: my_vector ! Input vector on each process
240239
integer, intent(in) :: root ! Rank of the root process

src/common/m_phase_change.fpp

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

795795
!> This subroutine finalizes the phase change module
796796
subroutine s_finalize_relaxation_solver_module
797-
end subroutine
797+
end subroutine s_finalize_relaxation_solver_module
798798

799799
#endif
800800

src/post_process/m_data_input.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ module m_data_input
3737
!! @param t_step Current time-step to input
3838
subroutine s_read_abstract_data_files(t_step)
3939

40+
implicit none
41+
4042
integer, intent(in) :: t_step
4143

4244
end subroutine s_read_abstract_data_files

src/pre_process/include/2dHardcodedIC.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
end if
101101

102102
case (205) ! 2D lung wave interaction problem
103-
h = 0._wp !non dim origin y
104-
lam = 1._wp !non dim lambda
103+
h = 0.0_wp !non dim origin y
104+
lam = 1.0_wp !non dim lambda
105105
amp = patch_icpp(patch_id)%a(2) !to be changed later! !non dim amplitude
106106

107107
intH = amp*sin(2*pi*x_cc(i)/lam - pi/2) + h
@@ -115,8 +115,8 @@
115115
end if
116116

117117
case (206) ! 2D lung wave interaction problem - horizontal domain
118-
h = 0._wp !non dim origin y
119-
lam = 1._wp !non dim lambda
118+
h = 0.0_wp !non dim origin y
119+
lam = 1.0_wp !non dim lambda
120120
amp = patch_icpp(patch_id)%a(2)
121121

122122
intL = amp*sin(2*pi*y_cc(j)/lam - pi/2) + h

src/pre_process/m_assign_variables.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,4 +684,4 @@ contains
684684
685685
end subroutine s_finalize_assign_variables_module
686686
687-
end module
687+
end module m_assign_variables

src/pre_process/m_compute_levelset.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ contains
261261
type(levelset_field), intent(INOUT) :: levelset
262262
type(levelset_norm_field), intent(INOUT) :: levelset_norm
263263

264-
integer :: ib_patch_id
264+
integer, intent(in) :: ib_patch_id
265265
real(wp) :: top_right(2), bottom_left(2)
266266
real(wp) :: x, y, min_dist
267267
real(wp) :: side_dists(4)

src/pre_process/m_grid.f90

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ module m_grid
3737

3838
subroutine s_generate_abstract_grid
3939

40-
! integer, intent(IN), optional :: dummy
41-
4240
end subroutine s_generate_abstract_grid
4341

4442
end interface

0 commit comments

Comments
 (0)