summaryrefslogtreecommitdiff
path: root/SRC/ilazlr.f
diff options
context:
space:
mode:
Diffstat (limited to 'SRC/ilazlr.f')
-rw-r--r--SRC/ilazlr.f9
1 files changed, 3 insertions, 6 deletions
diff --git a/SRC/ilazlr.f b/SRC/ilazlr.f
index 7fc1db24..dc5ceefd 100644
--- a/SRC/ilazlr.f
+++ b/SRC/ilazlr.f
@@ -111,12 +111,9 @@
ILAZLR = 0
DO J = 1, N
I=M
- DO WHILE ((A(I,J).NE.ZERO).AND.(I.GE.1))
- I=I-1
- IF (I.EQ.0) THEN
- EXIT
- END IF
- ENDDO
+ DO WHILE((A(MAX(I,1),J).EQ.ZERO).AND.(I.GE.1))
+ I=I-1
+ ENDDO
ILAZLR = MAX( ILAZLR, I )
END DO
END IF