Also, what does this do?
DO 2 K = L, N
Z = DABS(A(L,K))
IF (Z - PIVOT) 2,2,1
1 LIG(L) = K
PIVOT = Z
2 CONTINUE
I can't make any sense of the IF statement. What does 2,2,1 do? Why isn't there a logical operator that follows (Z-PIVOT)?
What version of Fortran coding is this? I'm...
> The "1" means just to continue onto the next line
Oh. I had this impression as well, but I always thought that was what the ampersand was used for.
Thanks for your help
I'm trying to interpret someone's Fortran code. He's written the following:
IMPLICIT REAL*8 (A-H,O-Z)
DIMENSION WEW(2710,2710),LV(2710),W(2710)
1,ETA(2710)
COMMON /FUN/ Z(2710),zm(2710),E,M,MM,U(2710),FIFI(2710),N,NP,PI
1,AZ(2710),DZ(2710)
1,Y(2710),x(2710)
1,gr,lcon
What does the...
I'm programming this in Fortran 90.
The overall program follows this format:
PROGRAM TEST
Declare variables
X = 2
CALL WALMART(FUNC, ...other stuff...)
END TEST
SUBROUTINE FUNC(MONEY, Y)
MONEY = X*Y
END
The problem is simple. I ask for some input array (X), then call a routine called...
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.