Skip to content

Commit 0c44dd4

Browse files
authored
Merge pull request #837 from weslleyspereira/fix-laruv
Exits xLARUV when N < 1
2 parents 24c6a91 + 8db97d3 commit 0c44dd4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

SRC/dlaruv.f

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ SUBROUTINE DLARUV( ISEED, N, X )
382382
$ 1537 /
383383
* ..
384384
* .. Executable Statements ..
385+
*
386+
* Quick return for N < 1
387+
IF ( N < 1 ) THEN
388+
RETURN
389+
END IF
385390
*
386391
I1 = ISEED( 1 )
387392
I2 = ISEED( 2 )

SRC/slaruv.f

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,11 @@ SUBROUTINE SLARUV( ISEED, N, X )
382382
$ 1537 /
383383
* ..
384384
* .. Executable Statements ..
385+
*
386+
* Quick return for N < 1
387+
IF ( N < 1 ) THEN
388+
RETURN
389+
END IF
385390
*
386391
I1 = ISEED( 1 )
387392
I2 = ISEED( 2 )

0 commit comments

Comments
 (0)