|
7 | 7 | module jf_test_14_mod
|
8 | 8 |
|
9 | 9 | use json_module
|
10 |
| - use, intrinsic :: iso_fortran_env , only: error_unit, output_unit |
| 10 | + use, intrinsic :: iso_fortran_env , only: error_unit,output_unit |
11 | 11 |
|
12 | 12 | implicit none
|
13 | 13 |
|
@@ -58,11 +58,11 @@ subroutine test_14(error_cnt)
|
58 | 58 | end if
|
59 | 59 |
|
60 | 60 | if (error_cnt==0) then
|
61 |
| - write(output_unit,'(A)') '' |
62 |
| - write(output_unit,'(A)') ' All names changed to Fred:' |
63 |
| - write(output_unit,'(A)') '' |
| 61 | + write(error_unit,'(A)') '' |
| 62 | + write(error_unit,'(A)') ' All names changed to Fred:' |
| 63 | + write(error_unit,'(A)') '' |
64 | 64 | call json_print(json,output_unit)
|
65 |
| - write(output_unit,'(A)') '' |
| 65 | + write(error_unit,'(A)') '' |
66 | 66 | end if
|
67 | 67 |
|
68 | 68 | call json_destroy(json) !clean up
|
@@ -91,7 +91,7 @@ subroutine rename(p,finished) !! change all "name" variable values to "Fred"
|
91 | 91 | if (var_type==json_string .and. str=='name') then
|
92 | 92 | call json_get(p,'@',str) ! get original name
|
93 | 93 | call json_update(p,'@','Fred',found) !change it
|
94 |
| - write(output_unit,'(A)') str//' name changed' |
| 94 | + write(error_unit,'(A)') str//' name changed' |
95 | 95 | icount = icount + 1
|
96 | 96 | end if
|
97 | 97 |
|
|
0 commit comments