Richard E Maine wrote:
> Fortunately for me, I've never
> used namelist internal output, and my uses of list-directed internal
> output are pretty simple.
I did not use to use much list-direction internal output, but then I
implemented a comprehensive and OOP event logging system, which is
supposed to work even on a parallel machine where non-internal IO is
not possible. The idea is that the client writes whatever it needs to
write to an internal buffer
WRITE(log%buffer,...) ...
and then calls
CALL log%Write() ! Type-bound procedure
Since we do not have variable-IO lists or anything like the C-printf, it
is not possible for me to replace the WRITE statement with my own
provided subroutine. Rather, I let the user use internal IO, and then I
take care of actually writing that to a file, the screen, sending it
via MPI, or whatever.
Best,
Aleks
|