Re: closing unit=5 and unit=6 and print *




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

.



Relevant Pages

  • FAQ Where did my console output go?
    ... into standard output, the output doesn't show in the screen. ... you should open a console before outputting anything ... The operating system opens up a console for all programs that ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • FAQ Where did my console output go?
    ... into standard output, the output doesn't show in the screen. ... happens in windows systems since quite a long time. ... you should open a console before outputting anything ... The operating system opens up a console for all programs that ...
    (comp.lang.c)
  • Re: System.Console.WriteLine question
    ... Unfortunately I don't think you can use Console. ... Apparently standard input ... and standard output are not mapped to the console for an ASP.NET ... > Am I thick or just unlucky? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Redirecting standard output
    ... Is there a way to redirect the standard output, so that command like ... puts write to a file instead of the console? ...
    (comp.lang.ruby)
  • Re: closing unit=5 and unit=6 and print *
    ... depending on what unit number is passed to it. ... less convenient to wrap IF statements around all WRITE statements to ... the unit for standard output, a PARAMETER should be declared and used ... Dan Nagle ...
    (comp.lang.fortran)