Re: closing unit=5 and unit=6 and print *
- From: Dan Nagle <dannagle@xxxxxxxxxxx>
- Date: Tue, 29 Aug 2006 14:48:43 GMT
Hello,
See INPUT_UNIT, OUTPUT_UNIT, ERROR_UNIT in ISO_FORTRAN_ENV.
Arjen Markus wrote:
beliav...@xxxxxxx schreef:
It is convenient to have a subroutine that can write to a file or print
to the console, depending on what unit number is passed to it. It is
less convenient to wrap IF statements around all WRITE statements to
choose between unit=* and unit=some_number. If a code assumes that 6 is
the unit for standard output, a PARAMETER should be declared and used
for this, to make this assumption clear.
Yes, but isn't that included in Fortran 2003? (I do not have the
standard
near me, so I can not check, but I remember something like that).
Otherwise, I think it is one of the things Dan Nagle's portability
project takes care of.
Regards,
Arjen
--
Cheers!
Dan Nagle
Purple Sage Computing Solutions, Inc.
.
- Follow-Ups:
- Re: closing unit=5 and unit=6 and print *
- From: beliavsky
- Re: closing unit=5 and unit=6 and print *
- References:
- closing unit=5 and unit=6 and print *
- From: Dylan Sung
- Re: closing unit=5 and unit=6 and print *
- From: Tim Prince
- Re: closing unit=5 and unit=6 and print *
- From: beliavsky
- Re: closing unit=5 and unit=6 and print *
- From: Arjen Markus
- closing unit=5 and unit=6 and print *
- Prev by Date: Re: closing unit=5 and unit=6 and print *
- Next by Date: Re: VB .Net and Intel Visual Fortran 9
- Previous by thread: Re: closing unit=5 and unit=6 and print *
- Next by thread: Re: closing unit=5 and unit=6 and print *
- Index(es):
Relevant Pages
|