Skip to content

Commit f94ce05

Browse files
committed
fixed some compiler warnings about real conversions
1 parent 6824212 commit f94ce05

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/json_value_module.F90

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8571,7 +8571,7 @@ subroutine json_get_real32(json, me, value)
85718571
real(RK) :: tmp
85728572

85738573
call json%get(me, tmp)
8574-
value = real(tmp,RK)
8574+
value = real(tmp,real32)
85758575

85768576
end subroutine json_get_real32
85778577
!*****************************************************************************************
@@ -8601,7 +8601,7 @@ subroutine json_get_real32_by_path(json, me, path, value, found, default)
86018601
call json%get(me, path, tmp, found)
86028602
end if
86038603

8604-
value = real(tmp,RK)
8604+
value = real(tmp,real32)
86058605

86068606
end subroutine json_get_real32_by_path
86078607
!*****************************************************************************************
@@ -8641,7 +8641,7 @@ subroutine json_get_real32_vec(json, me, vec)
86418641
real(RK),dimension(:),allocatable :: tmp
86428642

86438643
call json%get(me, tmp)
8644-
if (allocated(tmp)) vec = real(tmp,RK)
8644+
if (allocated(tmp)) vec = real(tmp,real32)
86458645

86468646
end subroutine json_get_real32_vec
86478647
!*****************************************************************************************
@@ -8671,7 +8671,7 @@ subroutine json_get_real32_vec_by_path(json, me, path, vec, found, default)
86718671
call json%get(me, path, tmp, found)
86728672
end if
86738673

8674-
if (allocated(tmp)) vec = real(tmp,RK)
8674+
if (allocated(tmp)) vec = real(tmp,real32)
86758675

86768676
end subroutine json_get_real32_vec_by_path
86778677
!*****************************************************************************************
@@ -8713,7 +8713,7 @@ subroutine json_get_real64(json, me, value)
87138713
real(RK) :: tmp
87148714

87158715
call json%get(me, tmp)
8716-
value = real(tmp,RK)
8716+
value = real(tmp,real64)
87178717

87188718
end subroutine json_get_real64
87198719
!*****************************************************************************************
@@ -8736,7 +8736,7 @@ subroutine json_get_real64_by_path(json, me, path, value, found, default)
87368736
real(RK) :: tmp
87378737

87388738
call json%get(me, path, tmp, found, default)
8739-
value = real(tmp,RK)
8739+
value = real(tmp,real64)
87408740

87418741
end subroutine json_get_real64_by_path
87428742
!*****************************************************************************************
@@ -8776,7 +8776,7 @@ subroutine json_get_real64_vec(json, me, vec)
87768776
real(RK),dimension(:),allocatable :: tmp
87778777

87788778
call json%get(me, tmp)
8779-
if (allocated(tmp)) vec = real(tmp,RK)
8779+
if (allocated(tmp)) vec = real(tmp,real64)
87808780

87818781
end subroutine json_get_real64_vec
87828782
!*****************************************************************************************
@@ -8799,7 +8799,7 @@ subroutine json_get_real64_vec_by_path(json, me, path, vec, found, default)
87998799
real(RK),dimension(:),allocatable :: tmp
88008800

88018801
call json%get(me, path, tmp, found, default)
8802-
if (allocated(tmp)) vec = real(tmp,RK)
8802+
if (allocated(tmp)) vec = real(tmp,real64)
88038803

88048804
end subroutine json_get_real64_vec_by_path
88058805
!*****************************************************************************************

0 commit comments

Comments
 (0)