Hello Fortran lovers,
Metcalf & Reid 's example program "clock.f90" shows two ways to
use the System_Clock subroutine.
The second one calls the subroutine without arguments. This seems to be
allowed, because all three arguments are optional.
Question ONE: What could be the idea of this usage, because the result is not
mentioned explicitly in the standard.
TWO: The following program, copiled with Salford FTN95 produces
error-messages.
Why should that be?
Absoft f90 accepts the same program without complaining.
! [JvO] 2000-06-28 d:\fortran\error\clock.f90
call system_clock()
end
<Example>
% ftn95 clock
[FTN95/WIN32 Ver. 2.00 Copyright(c) Salford Software Ltd 1993-2000]
Licensed to: Mr J. van Oosterwijk
Organisation: TU DELFT
0002) call system_clock()
*** The COUNT argument to SYSTEM_CLOCK must be default integer
*** The COUNT_RATE argument to SYSTEM_CLOCK must be default integer
*** The COUNT_MAX argument to SYSTEM_CLOCK must be default integer
3 ERRORS [<main program> FTN95/WIN32 v2.00]
*** Compilation failed
</Example>
Your comments, please!
---
Meilleures Salutations,
Best Greetings,
/---
Jan van Oosterwijk
Computing Centre
Delft University of Technology
Postbus 354
2600 AJ Delft
Netherlands / Pays-Bas
Phone: +31 15 278 50 17
Fax: +31 15 278 37 87
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|