73 character (len=10 ) :: stdout_file
74 character (len=256) :: io_errmsg
75 character (len=*),
parameter :: myfile = &
76 & __FILE__//
", stdout_unit"
92# if defined DISTRIBUTE && defined DISJOINTED
93 stdoutunit=60+forkcolor
94 WRITE (stdout_file,
'(a,i2.2,a)')
'log', forkcolor+1,
'.roms'
97 stdout_file=
'log.roms'
114 OPEN (stdoutunit, file=trim(stdout_file), &
115 & form=
'formatted', status=
'old', position=
'append', &
116 & action=
'write', iostat=io_err, iomsg=io_errmsg)
118 OPEN (stdoutunit, file=trim(stdout_file), &
119 & form=
'formatted', status=
'replace', &
120 & iostat=io_err, iomsg=io_errmsg)
122 IF (io_err.ne.0)
THEN
123 IF (
mymaster)
WRITE (stdoutunit,10) trim(stdout_file), &
126 10
FORMAT (/,
' STDOUT_UNIT - Cannot open standard output file: ', &
127 & a,/,15x,
'ERROR: ',a)