Skip to content

Commit e3d0040

Browse files
committed
Another fix
1 parent 95474cf commit e3d0040

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/common/m_helper_basic.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ logical pure elemental function f_approx_equal(a, b, tol_input) result(res)
3333
tol = tol_input
3434
else
3535
if (wp == selected_real_kind(15, 307)) then
36-
tol = 1.e-10_wp ! Double
36+
tol = 1.e-10_wp
3737
else if (wp == selected_real_kind(6, 37)) then
38-
tol = 1.e-6_wp ! Single
38+
tol = 1.e-6_wp
3939
end if
4040
end if
4141

@@ -51,7 +51,7 @@ end function f_approx_equal
5151
!> This procedure checks if the point numbers of wp belongs to another array are within tolerance.
5252
!! @param a First number.
5353
!! @param b Array that contains several point numbers.
54-
!! @param tol_input Relative error (default = 1.e-10_wp for double precision and 1e-6 for single).
54+
!! @param tol_input Relative error (default = 1.e-10_wp for double and 1e-6 for single).
5555
!! @return Result of the comparison.
5656
logical pure function f_approx_in_array(a, b, tol_input) result(res)
5757
!$acc routine seq
@@ -67,9 +67,9 @@ logical pure function f_approx_in_array(a, b, tol_input) result(res)
6767
tol = tol_input
6868
else
6969
if (wp == selected_real_kind(15, 307)) then
70-
tol = 1.e-10_wp ! Double Precision
70+
tol = 1.e-10_wp
7171
else if (wp == selected_real_kind(6, 37)) then
72-
tol = 1.e-6_wp ! Single Precision
72+
tol = 1.e-6_wp
7373
end if
7474
end if
7575

0 commit comments

Comments
 (0)