Hello,
I am new to FORTRAN and just getting hang of it. I have a global variable say counter which I need to pass to a subroutine and do some processing.
FIRST.f90
integer counter
common /coun/counter
counter = 1000
call second
In SECOND.f90
subroutine second
common /coun/counter...
I have an Intel FORTRAN compiler running on 64 bit Linux. Anyway, somehow I couldn't find a FORTRAN subroutine to get microseconds.
So now I am calling C function from FORTRAN program.
Just for the benefit of others:
Inside FORTRAN
...
call SHOWTIME()
...
Inside C
#include<stdio.h>...
Hello,
Is there subroutine in FORTRAN to display time to the microsecond level? ( Crucial in performance evaluation )
There is this date_and_time function but it only displays to the milliseconds level.
Thanks.
Shalini.
Hello,
I am new to FORTRAN. Could some please give a URL for tutorial of this language?
Additionally, would really appreciate if someone could tell me a command and its syntax in FORTRAN similar to exit(0) or exit(1) in C?
Thanks a lot.
Shalini.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.