Skip to content

Commit 0367776

Browse files
committed
fix
1 parent 1864285 commit 0367776

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

src/common/m_helper.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,12 +503,12 @@ contains
503503
real(wp), intent(in) :: x, phi
504504
real(wp) :: Y, prefactor, pi
505505
506-
pi = acos(-1_wp)
506+
pi = acos(-1._wp)
507507
prefactor = sqrt((2*l + 1)/(4*pi)*factorial(l - m)/factorial(l + m));
508508
if (m == 0) then
509509
Y = prefactor*associated_legendre(x, l, m);
510510
elseif (m > 0) then
511-
Y = (-1_wp)**m*sqrt(2_wp)*prefactor*associated_legendre(x, l, m)*cos(m*phi);
511+
Y = (-1._wp)**m*sqrt(2._wp)*prefactor*associated_legendre(x, l, m)*cos(m*phi);
512512
end if
513513
514514
end function spherical_harmonic_func
@@ -530,7 +530,7 @@ contains
530530
elseif (l == 1 .and. m <= 0) then
531531
P = x;
532532
elseif (l == 1 .and. m == 1) then
533-
P = -(1 - x**2)**(1/2);
533+
P = -(1 - x**2)**(1._wp/2._wp);
534534
elseif (m == l) then
535535
P = (-1)**l*double_factorial(2*l - 1)*(1 - x**2)**(l/2);
536536
elseif (m == l - 1) then

src/common/m_variables_conversion.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,7 @@ contains
14161416

14171417
real(wp) :: blkmod1, blkmod2
14181418
real(wp) :: Tolerance
1419+
14191420
integer :: q
14201421

14211422
if (chemistry) then

src/post_process/m_data_output.fpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,6 +1139,8 @@ contains
11391139
dV = 0_wp
11401140
pres_av = 0_wp
11411141
pres = 0_wp
1142+
c = 0._wp
1143+
11421144
do k = 0, p
11431145
do j = 0, n
11441146
do i = 0, m
@@ -1168,10 +1170,10 @@ contains
11681170
11691171
call s_compute_speed_of_sound(pres, rho, &
11701172
gamma, pi_inf, &
1171-
H, adv, 0_wp, 0_wp, c)
1173+
H, adv, 0._wp, 0._wp, c)
11721174
11731175
Ma = maxvel/c
1174-
if (Ma > MaxMa .and. adv(1) > 1.0_wp - 1.0d-10) then
1176+
if (Ma > MaxMa .and. (adv(1) > (1.0_wp - 1.0e-10_wp))) then
11751177
MaxMa = Ma
11761178
end if
11771179
Vl = Vl + adv(1)*dV

src/simulation/m_riemann_solvers.fpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ contains
572572
! G_R = G_R + alpha_R(i)*Gs(i)
573573
! end do
574574
! ! Elastic contribution to energy if G large enough
575-
! if ((G_L > 1d-3) .and. (G_R > 1d-3)) then
575+
! if ((G_L > 1e-3_wp) .and. (G_R > 1e-3_wp)) then
576576
! E_L = E_L + G_L*qL_prim_rs${XYZ}$_vf(j, k, l, xiend + 1)
577577
! E_R = E_R + G_R*qR_prim_rs${XYZ}$_vf(j + 1, k, l, xiend + 1)
578578
! !$acc loop seq
@@ -1299,13 +1299,13 @@ contains
12991299
13001300
! goes with numerical star velocity in x/y/z directions
13011301
! xi_P/M = 0.5 +/m sgn(0.5,s_star)
1302-
xi_M = (5d-1 + sign(5d-1, s_S))
1303-
xi_P = (5d-1 - sign(5d-1, s_S))
1302+
xi_M = (5e-1_wp + sign(0.5_wp, s_S))
1303+
xi_P = (5e-1_wp - sign(0.5_wp, s_S))
13041304
13051305
! goes with the numerical velocity in x/y/z directions
13061306
! xi_P/M (pressure) = min/max(0. sgn(1,sL/sR))
1307-
xi_MP = -min(0_wp, sign(1_wp, s_L))
1308-
xi_PP = max(0_wp, sign(1_wp, s_R))
1307+
xi_MP = -min(0._wp, sign(1._wp, s_L))
1308+
xi_PP = max(0._wp, sign(1._wp, s_R))
13091309
13101310
E_star = xi_M*(E_L + xi_MP*(xi_L*(E_L + (s_S - vel_L(dir_idx(1)))* &
13111311
(rho_L*s_S + pres_L/(s_L - vel_L(dir_idx(1))))) - E_L)) + &

0 commit comments

Comments
 (0)