diff --git a/SRC/cgetv0.f b/SRC/cgetv0.f index b49e66708..c231eadcb 100644 --- a/SRC/cgetv0.f +++ b/SRC/cgetv0.f @@ -156,13 +156,13 @@ subroutine cgetv0 c | Local Scalars & Arrays | c %------------------------% c - logical first, orth + logical first, inits, orth integer idist, iseed(4), iter, msglvl, jj Real & rnorm0 Complex & cnorm - save first, iseed, iter, msglvl, orth, rnorm0 + save first, iseed, inits, iter, msglvl, orth, rnorm0 c c %----------------------% c | External Subroutines | @@ -180,6 +180,12 @@ subroutine cgetv0 & ccdotc external ccdotc, scnrm2, slapy2 c +c %-----------------% +c | Data Statements | +c %-----------------% +c + data inits /.true./ +c c %-----------------------% c | Executable Statements | c %-----------------------% @@ -190,10 +196,13 @@ subroutine cgetv0 c | random number generator | c %-----------------------------------% c - iseed(1) = 1 - iseed(2) = 3 - iseed(3) = 5 - iseed(4) = 7 + if (inits) then + iseed(1) = 1 + iseed(2) = 3 + iseed(3) = 5 + iseed(4) = 7 + inits = .false. + end if c if (ido .eq. 0) then c diff --git a/SRC/dgetv0.f b/SRC/dgetv0.f index 8be4fa26d..1d6dc01bd 100644 --- a/SRC/dgetv0.f +++ b/SRC/dgetv0.f @@ -157,11 +157,11 @@ subroutine dgetv0 c | Local Scalars & Arrays | c %------------------------% c - logical first, orth + logical first, inits, orth integer idist, iseed(4), iter, msglvl, jj Double precision & rnorm0 - save first, iseed, iter, msglvl, orth, rnorm0 + save first, iseed, inits, iter, msglvl, orth, rnorm0 c c %----------------------% c | External Subroutines | @@ -183,6 +183,12 @@ subroutine dgetv0 c intrinsic abs, sqrt c +c %-----------------% +c | Data Statements | +c %-----------------% +c + data inits /.true./ +c c %-----------------------% c | Executable Statements | c %-----------------------% @@ -193,10 +199,13 @@ subroutine dgetv0 c | random number generator | c %-----------------------------------% c - iseed(1) = 1 - iseed(2) = 3 - iseed(3) = 5 - iseed(4) = 7 + if (inits) then + iseed(1) = 1 + iseed(2) = 3 + iseed(3) = 5 + iseed(4) = 7 + inits = .false. + end if c if (ido .eq. 0) then c diff --git a/SRC/sgetv0.f b/SRC/sgetv0.f index 26130a014..d861b2d6d 100644 --- a/SRC/sgetv0.f +++ b/SRC/sgetv0.f @@ -157,11 +157,11 @@ subroutine sgetv0 c | Local Scalars & Arrays | c %------------------------% c - logical first, orth + logical first, inits, orth integer idist, iseed(4), iter, msglvl, jj Real & rnorm0 - save first, iseed, iter, msglvl, orth, rnorm0 + save first, iseed, inits, iter, msglvl, orth, rnorm0 c c %----------------------% c | External Subroutines | @@ -183,6 +183,12 @@ subroutine sgetv0 c intrinsic abs, sqrt c +c %-----------------% +c | Data Statements | +c %-----------------% +c + data inits /.true./ +c c %-----------------------% c | Executable Statements | c %-----------------------% @@ -193,10 +199,13 @@ subroutine sgetv0 c | random number generator | c %-----------------------------------% c - iseed(1) = 1 - iseed(2) = 3 - iseed(3) = 5 - iseed(4) = 7 + if (inits) then + iseed(1) = 1 + iseed(2) = 3 + iseed(3) = 5 + iseed(4) = 7 + inits = .false. + end if c if (ido .eq. 0) then c diff --git a/SRC/zgetv0.f b/SRC/zgetv0.f index cc13c3cfb..1fbd50851 100644 --- a/SRC/zgetv0.f +++ b/SRC/zgetv0.f @@ -156,13 +156,13 @@ subroutine zgetv0 c | Local Scalars & Arrays | c %------------------------% c - logical first, orth + logical first, inits, orth integer idist, iseed(4), iter, msglvl, jj Double precision & rnorm0 Complex*16 & cnorm - save first, iseed, iter, msglvl, orth, rnorm0 + save first, iseed, inits, iter, msglvl, orth, rnorm0 c c %----------------------% c | External Subroutines | @@ -180,6 +180,12 @@ subroutine zgetv0 & zzdotc external zzdotc, dznrm2, dlapy2 c +c %-----------------% +c | Data Statements | +c %-----------------% +c + data inits /.true./ +c c %-----------------------% c | Executable Statements | c %-----------------------% @@ -190,10 +196,13 @@ subroutine zgetv0 c | random number generator | c %-----------------------------------% c - iseed(1) = 1 - iseed(2) = 3 - iseed(3) = 5 - iseed(4) = 7 + if (inits) then + iseed(1) = 1 + iseed(2) = 3 + iseed(3) = 5 + iseed(4) = 7 + inits = .false. + end if c if (ido .eq. 0) then c