@@ -672,7 +672,7 @@ subroutine json_initialize(json,verbose,compact_reals,&
672
672
673
673
!
674
674
! JW comment out for now (these are now protected variables in another module)
675
- ! for thread-save version, we won't be able to have global variables.........
675
+ ! for thread-safe version, we won't be able to have global variables.........
676
676
!
677
677
! Ensure gfortran bug work around "parameters" are set properly
678
678
! null_str = 'null'
@@ -1001,13 +1001,13 @@ subroutine json_throw_exception(json,msg)
1001
1001
json% err_message = trim (msg)
1002
1002
1003
1003
if (json% is_verbose) then
1004
- write (* ,' (A)' ) ' ***********************'
1005
- write (* ,' (A)' ) ' JSON-Fortran Exception: ' // trim (msg)
1004
+ write (output_unit ,' (A)' ) ' ***********************'
1005
+ write (output_unit ,' (A)' ) ' JSON-Fortran Exception: ' // trim (msg)
1006
1006
! call backtrace() ! gfortran (use -fbacktrace -fall-intrinsics flags)
1007
1007
#ifdef __INTEL_COMPILER
1008
1008
call tracebackqq(user_exit_code=- 1 ) ! print a traceback and return
1009
1009
#endif
1010
- write (* ,' (A)' ) ' ***********************'
1010
+ write (output_unit ,' (A)' ) ' ***********************'
1011
1011
end if
1012
1012
1013
1013
end subroutine json_throw_exception
@@ -5932,7 +5932,7 @@ subroutine json_print_error_message(json,io_unit)
5932
5932
if (present (io_unit)) then
5933
5933
write (io_unit,' (A)' ) error_msg
5934
5934
else
5935
- write (* ,' (A)' ) error_msg
5935
+ write (output_unit ,' (A)' ) error_msg
5936
5936
end if
5937
5937
deallocate (error_msg)
5938
5938
call json% clear_exceptions()
0 commit comments