@@ -672,7 +672,7 @@ subroutine json_initialize(json,verbose,compact_reals,&
672672
673673 !
674674 ! 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.........
676676 !
677677 ! Ensure gfortran bug work around "parameters" are set properly
678678 ! null_str = 'null'
@@ -1001,13 +1001,13 @@ subroutine json_throw_exception(json,msg)
10011001 json% err_message = trim (msg)
10021002
10031003 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)
10061006 ! call backtrace() ! gfortran (use -fbacktrace -fall-intrinsics flags)
10071007#ifdef __INTEL_COMPILER
10081008 call tracebackqq(user_exit_code=- 1 ) ! print a traceback and return
10091009#endif
1010- write (* ,' (A)' ) ' ***********************'
1010+ write (output_unit ,' (A)' ) ' ***********************'
10111011 end if
10121012
10131013 end subroutine json_throw_exception
@@ -5932,7 +5932,7 @@ subroutine json_print_error_message(json,io_unit)
59325932 if (present (io_unit)) then
59335933 write (io_unit,' (A)' ) error_msg
59345934 else
5935- write (* ,' (A)' ) error_msg
5935+ write (output_unit ,' (A)' ) error_msg
59365936 end if
59375937 deallocate (error_msg)
59385938 call json% clear_exceptions()
0 commit comments