6
6
7
7
module jf_test_10_mod
8
8
9
- use json_module
10
- use , intrinsic :: iso_fortran_env , only: error_unit, output_unit, wp = > real64
9
+ use json_module, wp = > json_RK
10
+ use , intrinsic :: iso_fortran_env , only: error_unit, output_unit
11
11
12
12
implicit none
13
13
@@ -176,7 +176,7 @@ subroutine test_10(error_cnt)
176
176
end if
177
177
178
178
write (error_unit,' (A)' ) ' json_file_update_real [variable present]...'
179
- call f2% update(' data[2].real' ,100.0d0 ,found)
179
+ call f2% update(' data[2].real' ,100.0_wp ,found)
180
180
if (f2% failed()) then
181
181
call f2% print_error_message(error_unit)
182
182
error_cnt = error_cnt + 1
@@ -189,7 +189,7 @@ subroutine test_10(error_cnt)
189
189
end if
190
190
end if
191
191
write (error_unit,' (A)' ) ' json_file_update_real [variable not present]...'
192
- call f2% update(' new_real' ,1776.0d0 ,found)
192
+ call f2% update(' new_real' ,1776.0_wp ,found)
193
193
if (f2% failed()) then
194
194
call f2% print_error_message(error_unit)
195
195
error_cnt = error_cnt + 1
@@ -269,7 +269,7 @@ subroutine test_10(error_cnt)
269
269
end if
270
270
271
271
write (error_unit,' (A)' ) ' json_update_double...'
272
- call json% update(p,' data(2).real' ,- 1.0d0 ,found)
272
+ call json% update(p,' data(2).real' ,- 1.0_wp ,found)
273
273
if (json% failed()) then
274
274
call json% print_error_message(error_unit)
275
275
error_cnt = error_cnt + 1
@@ -315,7 +315,7 @@ subroutine test_10(error_cnt)
315
315
write (error_unit,' (A)' ) ' json_create...'
316
316
write (error_unit,' (A)' ) ' json_create_logical...' ; call json% destroy(p); call json% create_logical(p,.true. ,' foo' )
317
317
write (error_unit,' (A)' ) ' json_create_integer...' ; call json% destroy(p); call json% create_integer(p,1000 ,' foo' )
318
- write (error_unit,' (A)' ) ' json_create_double ...' ; call json% destroy(p); call json% create_double (p,9.0d0 ,' foo' )
318
+ write (error_unit,' (A)' ) ' json_create_double ...' ; call json% destroy(p); call json% create_double (p,9.0_wp ,' foo' )
319
319
write (error_unit,' (A)' ) ' json_create_string ...' ; call json% destroy(p); call json% create_string (p,' foo' ,' bar' )
320
320
write (error_unit,' (A)' ) ' json_create_null ...' ; call json% destroy(p); call json% create_null (p,' foo' )
321
321
write (error_unit,' (A)' ) ' json_create_object ...' ; call json% destroy(p); call json% create_object (p,' foo' )
0 commit comments