Re: closing unit=5 and unit=6 and print *
- From: "Arjen Markus" <arjen.markus@xxxxxxxxxx>
- Date: 29 Aug 2006 07:21:49 -0700
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
.
- Follow-Ups:
- Re: closing unit=5 and unit=6 and print *
- From: sbergero
- Re: closing unit=5 and unit=6 and print *
- From: Dan Nagle
- 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
- closing unit=5 and unit=6 and print *
- Prev by Date: Re: closing unit=5 and unit=6 and print *
- Next by Date: Re: closing unit=5 and unit=6 and print *
- 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
|