Skip to content

Commit cef0f44

Browse files
committed
Marked some subroutines as pure and ran formatter
1 parent 1d7b449 commit cef0f44

File tree

12 files changed

+58
-58
lines changed

12 files changed

+58
-58
lines changed

src/common/m_finite_differences.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ contains
6868
!! @param s_cc Locations of the cell-centers in the s-coordinate direction
6969
!! @param fd_coeff_s Finite-diff. coefficients in the s-coordinate direction
7070
pure subroutine s_compute_finite_difference_coefficients(q, s_cc, fd_coeff_s, buff_size, &
71-
fd_number_in, fd_order_in, offset_s)
71+
fd_number_in, fd_order_in, offset_s)
7272
7373
integer :: lB, lE !< loop bounds
7474
integer, intent(IN) :: q

src/common/m_helper.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ contains
571571
572572
integer :: i
573573
574-
R = product((/(i, i=n, 1,-1)/))
574+
R = product((/(i, i=n, 1, -1)/))
575575
576576
end function factorial
577577

src/common/m_helper_basic.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ logical pure elemental function f_is_integer(var) result(res)
7878
end function f_is_integer
7979

8080
pure subroutine s_configure_coordinate_bounds(weno_polyn, buff_size, idwint, idwbuff, &
81-
viscous, bubbles_lagrange, m, n, p, num_dims)
81+
viscous, bubbles_lagrange, m, n, p, num_dims)
8282

8383
integer, intent(in) :: weno_polyn, m, n, p, num_dims
8484
integer, intent(inout) :: buff_size

src/common/m_mpi_common.fpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,13 +374,13 @@ contains
374374
!! @param vcfl_max_glb Global maximum VCFL stability criterion
375375
!! @param Rc_min_glb Global minimum Rc stability criterion
376376
impure subroutine s_mpi_reduce_stability_criteria_extrema(icfl_max_loc, &
377-
vcfl_max_loc, &
378-
ccfl_max_loc, &
379-
Rc_min_loc, &
380-
icfl_max_glb, &
381-
vcfl_max_glb, &
382-
ccfl_max_glb, &
383-
Rc_min_glb)
377+
vcfl_max_loc, &
378+
ccfl_max_loc, &
379+
Rc_min_loc, &
380+
icfl_max_glb, &
381+
vcfl_max_glb, &
382+
ccfl_max_glb, &
383+
Rc_min_glb)
384384
385385
real(wp), intent(in) :: icfl_max_loc
386386
real(wp), intent(in) :: vcfl_max_loc

src/common/m_variables_conversion.fpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,9 @@ contains
462462
end subroutine s_convert_species_to_mixture_variables
463463

464464
pure subroutine s_convert_species_to_mixture_variables_acc(rho_K, &
465-
gamma_K, pi_inf_K, qv_K, &
466-
alpha_K, alpha_rho_K, Re_K, k, l, r, &
467-
G_K, G)
465+
gamma_K, pi_inf_K, qv_K, &
466+
alpha_K, alpha_rho_K, Re_K, k, l, r, &
467+
G_K, G)
468468
#ifdef _CRAYFTN
469469
!DIR$ INLINEALWAYS s_convert_species_to_mixture_variables_acc
470470
#else
@@ -546,8 +546,8 @@ contains
546546
end subroutine s_convert_species_to_mixture_variables_acc
547547

548548
pure subroutine s_convert_species_to_mixture_variables_bubbles_acc(rho_K, &
549-
gamma_K, pi_inf_K, qv_K, &
550-
alpha_K, alpha_rho_K, Re_K, k, l, r)
549+
gamma_K, pi_inf_K, qv_K, &
550+
alpha_K, alpha_rho_K, Re_K, k, l, r)
551551
#ifdef _CRAYFTN
552552
!DIR$ INLINEALWAYS s_convert_species_to_mixture_variables_bubbles_acc
553553
#else
@@ -1168,7 +1168,7 @@ contains
11681168
!! @param iy Index bounds in the second coordinate direction
11691169
!! @param iz Index bounds in the third coordinate direction
11701170
impure subroutine s_convert_primitive_to_conservative_variables(q_prim_vf, &
1171-
q_cons_vf)
1171+
q_cons_vf)
11721172

11731173
type(scalar_field), dimension(sys_size), intent(in) :: q_prim_vf
11741174
type(scalar_field), dimension(sys_size), intent(inout) :: q_cons_vf

src/post_process/m_mpi_proxy.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ contains
847847
!! @param sweep_coord Coordinate direction normal to the processor boundary
848848
!! @param q_particle Projection of the lagrangian particles in the Eulerian framework
849849
impure subroutine s_mpi_sendrecv_cons_vars_buffer_regions(q_cons_vf, pbc_loc, &
850-
sweep_coord, q_particle)
850+
sweep_coord, q_particle)
851851
852852
type(scalar_field), &
853853
dimension(sys_size), &

src/pre_process/m_assign_variables.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ contains
102102
!! @param q_prim_vf Primitive variables
103103
!! @param patch_id_fp Array to track patch ids
104104
pure subroutine s_assign_patch_mixture_primitive_variables(patch_id, j, k, l, &
105-
eta, q_prim_vf, patch_id_fp)
105+
eta, q_prim_vf, patch_id_fp)
106106
!$acc routine seq
107107
108108
integer, intent(in) :: patch_id
@@ -282,7 +282,7 @@ contains
282282
!! @param q_prim_vf Primitive variables
283283
!! @param patch_id_fp Array to track patch ids
284284
impure subroutine s_assign_patch_species_primitive_variables(patch_id, j, k, l, &
285-
eta, q_prim_vf, patch_id_fp)
285+
eta, q_prim_vf, patch_id_fp)
286286
!$acc routine seq
287287
288288
integer, intent(in) :: patch_id

src/simulation/m_acoustic_src.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ contains
338338
!! @param frequency_local Frequency at the spatial location for sine and square waves
339339
!! @param gauss_sigma_time_local sigma in time for Gaussian pulse
340340
!! @param source Source term amplitude
341-
pure elemental subroutine s_source_temporal(sim_time, c, ai, term_index, frequency_local, gauss_sigma_time_local, source, sum_BB)
341+
pure elemental subroutine s_source_temporal(sim_time, c, ai, term_index, frequency_local, gauss_sigma_time_local, source, sum_BB)
342342
!$acc routine seq
343343
integer, intent(in) :: ai, term_index
344344
real(wp), intent(in) :: sim_time, c, sum_BB

src/simulation/m_bubbles.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ contains
314314
!> Subroutine that computes bubble wall properties for vapor bubbles
315315
!! @param pb Internal bubble pressure
316316
!! @param iR0 Current bubble size index
317-
subroutine s_bwproperty(pb, iR0)
317+
subroutine s_bwproperty(pb, iR0)
318318
!$acc routine seq
319319
real(wp), intent(in) :: pb
320320
integer, intent(in) :: iR0
@@ -335,7 +335,7 @@ contains
335335
!> Function that computes the vapour flux
336336
!! @param fR Current bubble radius
337337
!! @param fV Current bubble velocity
338-
!! @param fpb
338+
!! @param fpb
339339
!! @param fmass_v Current mass of vapour
340340
!! @param iR0 Bubble size index (EE) or bubble identifier (EL)
341341
!! @param fmass_n Current gas mass (EL)
@@ -593,8 +593,8 @@ contains
593593
!! @param fCson Speed of sound (EL)
594594
!! @param h Time step size
595595
pure subroutine s_initial_substep_h(fRho, fP, fR, fV, fR0, fpb, fpbdot, alf, &
596-
fntait, fBtait, f_bub_adv_src, f_divu, &
597-
fCson, h)
596+
fntait, fBtait, f_bub_adv_src, f_divu, &
597+
fCson, h)
598598
#ifdef _CRAYFTN
599599
!DIR$ INLINEALWAYS s_initial_substep_h
600600
#else

src/simulation/m_bubbles_EL_kernels.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ contains
387387
!> The purpose of this procedure is to calculate the characteristic cell volume
388388
!! @param cell Computational coordinates (x, y, z)
389389
!! @param Charvol Characteristic volume
390-
pure subroutine s_get_char_vol(cellx, celly, cellz, Charvol)
390+
pure elemental subroutine s_get_char_vol(cellx, celly, cellz, Charvol)
391391
#ifdef _CRAYFTN
392392
!DIR$ INLINEALWAYS s_get_char_vol
393393
#else

0 commit comments

Comments
 (0)