Help:The meaning of LOUT and INC statements
From: DanFortran (fort_at_ran)
Date: 11/28/03
- Next message: Dr Chaos: "Re: math library"
- Previous message: Brusselator: "Reading Undocumented fortran 77 source code."
- Next in thread: lkrupp_at_pssw.NOSPAM.com.INVALID: "Re: Help:The meaning of LOUT and INC statements"
- Reply: lkrupp_at_pssw.NOSPAM.com.INVALID: "Re: Help:The meaning of LOUT and INC statements"
- Reply: Dr Ivan D. Reid: "Re: Help:The meaning of LOUT and INC statements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Nov 2003 22:29:54 -0600
Hi,
This is a small example (.f90) that is actually compiling on the Intel compiler.
There is an warning (Comment 18 : The statement function is obsolescent in Fortran 95)
but is linking ok.
PROGRAM TEST_LOUT
CALL OUTPUT(2,1)
END PROGRAM TEST_LOUT
SUBROUTINE OUTPUT(KOUT,INCRS)
LOUT(N)=KOUT/N-(KOUT/(N*10))*10;
INC(N)=((INCRS/N)*N)/INCRS+1/INCRS;
M=LOUT(1000);
IF(M.NE.0) M=INC(M);
END SUBROUTINE OUTPUT
I can not understand what is with LOUT and INC, how can "LOUT(N)" compile, what is with "N" ???.
I've tried to search on the web but I've found nothing.
The assembler output seems to generate very strange instructions and the debugger
actually is skipping the LOUT(N) and INC(N) lines.(or incorrect generated line numbers)
If I put anything between the LOUT(N) and INC(N) lines it does not compile anymore
(Error 395 :This entity is not an array and must not be subscripted).
These instructions are striped down from a serious reference book so I believe that
they are actually doing something :)
Is there any equivalent statement(s)/logic for the LOUT/INC (even in other languages?)
Thanks
Dan
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
- Next message: Dr Chaos: "Re: math library"
- Previous message: Brusselator: "Reading Undocumented fortran 77 source code."
- Next in thread: lkrupp_at_pssw.NOSPAM.com.INVALID: "Re: Help:The meaning of LOUT and INC statements"
- Reply: lkrupp_at_pssw.NOSPAM.com.INVALID: "Re: Help:The meaning of LOUT and INC statements"
- Reply: Dr Ivan D. Reid: "Re: Help:The meaning of LOUT and INC statements"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|