Skip to content

Commit 2bcc8e0

Browse files
Archith IyerArchith Iyer
authored andcommitted
final commit, remove last remaining warnings
1 parent b82e704 commit 2bcc8e0

File tree

11 files changed

+42
-42
lines changed

11 files changed

+42
-42
lines changed

src/common/m_helper.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ contains
230230
real(wp), intent(out) :: Re_trans, Im_trans
231231

232232
complex :: trans, c1, c2, c3
233-
complex :: imag = (0., 1.)
233+
complex :: imag = (0._wp, 1._wp)
234234
real(wp) :: f_transcoeff
235235

236236
c1 = imag*omega*peclet

src/common/m_phase_change.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module m_phase_change
3838
!> @{
3939
integer, parameter :: max_iter = 1e8_wp !< max # of iterations
4040
real(wp), parameter :: pCr = 4.94e7_wp !< Critical water pressure
41-
real(wp), parameter :: TCr = 385.05 + 273.15 !< Critical water temperature
41+
real(wp), parameter :: TCr = 385.05_wp + 273.15_wp !< Critical water temperature
4242
real(wp), parameter :: mixM = 1.0e-8_wp !< threshold for 'mixture cell'. If Y < mixM, phase change does not happen
4343
integer, parameter :: lp = 1 !< index for the liquid phase of the reacting fluid
4444
integer, parameter :: vp = 2 !< index for the vapor phase of the reacting fluid

src/common/m_variables_conversion.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ contains
760760
!$acc loop seq
761761
do i = 1, nb
762762
mu = qK_cons_vf(bubxb + 1 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc
763-
sig = (qK_cons_vf(bubxb + 3 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc - mu**2)**0.5
763+
sig = (qK_cons_vf(bubxb + 3 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc - mu**2)**0.5_wp
764764

765765
mv(j, k, l, 1, i) = (mass_v0(i))*(mu - sig)**(3._wp)/(R0(i)**(3._wp))
766766
mv(j, k, l, 2, i) = (mass_v0(i))*(mu - sig)**(3._wp)/(R0(i)**(3._wp))
@@ -793,7 +793,7 @@ contains
793793
!$acc loop seq
794794
do i = 1, nb
795795
mu = qK_cons_vf(bubxb + 1 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc
796-
sig = (qK_cons_vf(bubxb + 3 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc - mu**2)**0.5
796+
sig = (qK_cons_vf(bubxb + 3 + (i - 1)*nmom)%sf(j, k, l)/nbub_sc - mu**2)**0.5_wp
797797

798798
!PRESTON (ISOTHERMAL)
799799
pb(j, k, l, 1, i) = (pb0(i))*(R0(i)**(3._wp))*(mass_n0(i) + mv(j, k, l, 1, i))/(mu - sig)**(3._wp)/(mass_n0(i) + mass_v0(i))
@@ -1137,7 +1137,7 @@ contains
11371137
(gamma*q_prim_vf(E_idx)%sf(j, k, l) + pi_inf)
11381138
else
11391139
!Tait EOS, no conserved energy variable
1140-
q_cons_vf(E_idx)%sf(j, k, l) = 0.
1140+
q_cons_vf(E_idx)%sf(j, k, l) = 0._wp
11411141
end if
11421142
end if
11431143

src/post_process/m_data_output.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ contains
695695
else
696696
697697
if (precision == 1) then
698-
write (dbfile) real(x_cb, kind(0.0))
698+
write (dbfile) real(x_cb, wp)
699699
else
700700
write (dbfile) x_cb
701701
end if
@@ -708,7 +708,7 @@ contains
708708
709709
if (proc_rank == 0) then
710710
if (precision == 1) then
711-
write (dbroot) real(x_root_cb, kind(0.0))
711+
write (dbroot) real(x_root_cb, wp)
712712
else
713713
write (dbroot) x_root_cb
714714
end if
@@ -953,7 +953,7 @@ contains
953953
! Writing the name of the flow variable and its data, associated
954954
! with the local processor, to the formatted database slave file
955955
if (precision == 1) then
956-
write (dbfile) varname, real(q_sf, kind(0.0))
956+
write (dbfile) varname, real(q_sf, wp)
957957
else
958958
write (dbfile) varname, q_sf
959959
end if
@@ -971,7 +971,7 @@ contains
971971
972972
if (proc_rank == 0) then
973973
if (precision == 1) then
974-
write (dbroot) varname, real(q_root_sf, kind(0.0))
974+
write (dbroot) varname, real(q_root_sf, wp)
975975
else
976976
write (dbroot) varname, q_root_sf
977977
end if

src/post_process/m_derived_variables.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ contains
546546
end do
547547
548548
! Compute Q
549-
Q = 0.5*((O2(1, 1) + O2(2, 2) + O2(3, 3)) - &
550-
(S2(1, 1) + S2(2, 2) + S2(3, 3)))
549+
Q = 0.5_wp*((O2(1, 1) + O2(2, 2) + O2(3, 3)) - &
550+
(S2(1, 1) + S2(2, 2) + S2(3, 3)))
551551
trS = S(1, 1) + S(2, 2) + S(3, 3)
552-
IIS = 0.5*((S(1, 1) + S(2, 2) + S(3, 3))**2 - &
553-
(S2(1, 1) + S2(2, 2) + S2(3, 3)))
552+
IIS = 0.5_wp*((S(1, 1) + S(2, 2) + S(3, 3))**2 - &
553+
(S2(1, 1) + S2(2, 2) + S2(3, 3)))
554554
q_sf(j, k, l) = Q + IIS
555555
556556
end do

src/post_process/m_global_parameters.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module m_global_parameters
5959
!> @name Cell-boundary locations in the x-, y- and z-coordinate directions
6060
!> @{
6161
real(wp), allocatable, dimension(:) :: x_cb, x_root_cb, y_cb, z_cb
62-
real(kind(0.0)), allocatable, dimension(:) :: x_cb_s, y_cb_s, z_cb_s
62+
real(wp), allocatable, dimension(:) :: x_cb_s, y_cb_s, z_cb_s
6363
!> @}
6464

6565
!> @name Cell-center locations in the x-, y- and z-coordinate directions

src/pre_process/m_assign_variables.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ contains
225225
B_tait = B_tait*(n_tait - 1._wp)/n_tait
226226
227227
if (j < 177) then
228-
q_prim_vf(E_idx)%sf(j, k, l) = 0.5*q_prim_vf(E_idx)%sf(j, k, l)
228+
q_prim_vf(E_idx)%sf(j, k, l) = 0.5_wp*q_prim_vf(E_idx)%sf(j, k, l)
229229
end if
230230
231231
if (qbmm) then

src/pre_process/m_compute_levelset.fpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -528,18 +528,18 @@ contains
528528
length_z = patch_ib(ib_patch_id)%length_z
529529

530530
if (length_x /= 0._wp) then
531-
boundary%beg = x_centroid - 0.5*length_x
532-
boundary%end = x_centroid + 0.5*length_x
531+
boundary%beg = x_centroid - 0.5_wp*length_x
532+
boundary%end = x_centroid + 0.5_wp*length_x
533533
dist_sides_vec = (/1, 0, 0/)
534534
dist_surface_vec = (/0, 1, 1/)
535535
else if (length_y /= 0._wp) then
536-
boundary%beg = y_centroid - 0.5*length_y
537-
boundary%end = y_centroid + 0.5*length_y
536+
boundary%beg = y_centroid - 0.5_wp*length_y
537+
boundary%end = y_centroid + 0.5_wp*length_y
538538
dist_sides_vec = (/0, 1, 0/)
539539
dist_surface_vec = (/1, 0, 1/)
540540
else if (length_z /= 0._wp) then
541-
boundary%beg = z_centroid - 0.5*length_z
542-
boundary%end = z_centroid + 0.5*length_z
541+
boundary%beg = z_centroid - 0.5_wp*length_z
542+
boundary%end = z_centroid + 0.5_wp*length_z
543543
dist_sides_vec = (/0, 0, 1/)
544544
dist_surface_vec = (/1, 1, 0/)
545545
end if

src/pre_process/m_model.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,10 @@ contains
501501

502502
do i = 1, spc
503503
call random_number(ray_origins(i, :))
504-
ray_origins(i, :) = point + (ray_origins(i, :) - 0.5)*spacing(:)
504+
ray_origins(i, :) = point + (ray_origins(i, :) - 0.5_wp)*spacing(:)
505505

506506
call random_number(ray_dirs(i, :))
507-
ray_dirs(i, :) = ray_dirs(i, :) - 0.5
507+
ray_dirs(i, :) = ray_dirs(i, :) - 0.5_wp
508508
ray_dirs(i, :) = ray_dirs(i, :)/sqrt(sum(ray_dirs(i, :)*ray_dirs(i, :)))
509509
end do
510510

@@ -549,7 +549,7 @@ contains
549549

550550
NdotRayDirection = sum(N(:)*ray%d(:))
551551

552-
if (abs(NdotRayDirection) < 0.0000001) then
552+
if (abs(NdotRayDirection) < 0.0000001_wp) then
553553
return
554554
end if
555555

src/pre_process/m_patches.fpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ contains
342342
dycdxc = (2*ma/(1 - pa)**2)*(pa - xa)
343343
end if
344344

345-
yt = (5._wp*ta)*(0.2969*xa**0.5_wp - 0.126*xa - 0.3516*xa**2._wp + 0.2843*xa**3 - 0.1015*xa**4)
346-
sin_c = dycdxc/(1 + dycdxc**2)**0.5
347-
cos_c = 1/(1 + dycdxc**2)**0.5
345+
yt = (5._wp*ta)*(0.2969_wp*xa**0.5_wp - 0.126_wp*xa - 0.3516_wp*xa**2._wp + 0.2843_wp*xa**3 - 0.1015_wp*xa**4)
346+
sin_c = dycdxc/(1 + dycdxc**2)**0.5_wp
347+
cos_c = 1/(1 + dycdxc**2)**0.5_wp
348348

349349
xu = xa - yt*sin_c
350350
yu = yc + yt*cos_c
@@ -509,9 +509,9 @@ contains
509509
dycdxc = (2*ma/(1 - pa)**2)*(pa - xa)
510510
end if
511511

512-
yt = (5._wp*ta)*(0.2969*xa**0.5_wp - 0.126*xa - 0.3516*xa**2._wp + 0.2843*xa**3 - 0.1015*xa**4)
513-
sin_c = dycdxc/(1 + dycdxc**2)**0.5
514-
cos_c = 1/(1 + dycdxc**2)**0.5
512+
yt = (5._wp*ta)*(0.2969_wp*xa**0.5_wp - 0.126_wp*xa - 0.3516_wp*xa**2._wp + 0.2843_wp*xa**3 - 0.1015_wp*xa**4)
513+
sin_c = dycdxc/(1 + dycdxc**2)**0.5_wp
514+
cos_c = 1/(1 + dycdxc**2)**0.5_wp
515515

516516
xu = xa - yt*sin_c
517517
yu = yc + yt*cos_c
@@ -1288,7 +1288,7 @@ contains
12881288
! state in the cells that this patch covers.
12891289
eta = 1._wp
12901290
l = 1._wp
1291-
U0 = 0.1
1291+
U0 = 0.1_wp
12921292
! Checking whether the patch covers a particular cell in the
12931293
! domain and verifying whether the current patch has the
12941294
! permission to write to that cell. If both queries check out,

0 commit comments

Comments
 (0)