Skip to content

Commit

Permalink
Fixes for Fortran Standards violations for lapack-netlib
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Dec 4, 2024
1 parent be19966 commit 35334ed
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 15 deletions.
6 changes: 3 additions & 3 deletions lapack-netlib/SRC/claqp2rk.f
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ SUBROUTINE CLAQP2RK( M, N, NRHS, IOFFSET, KMAX, ABSTOL, RELTOL,
EXTERNAL CLARF, CLARFG, CSWAP
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, REAL, CONJG, IMAG, MAX, MIN, SQRT
INTRINSIC ABS, REAL, CONJG, AIMAG, MAX, MIN, SQRT
* ..
* .. External Functions ..
LOGICAL SISNAN
Expand Down Expand Up @@ -599,8 +599,8 @@ SUBROUTINE CLAQP2RK( M, N, NRHS, IOFFSET, KMAX, ABSTOL, RELTOL,
*
IF( SISNAN( REAL( TAU(KK) ) ) ) THEN
TAUNAN = REAL( TAU(KK) )
ELSE IF( SISNAN( IMAG( TAU(KK) ) ) ) THEN
TAUNAN = IMAG( TAU(KK) )
ELSE IF( SISNAN( AIMAG( TAU(KK) ) ) ) THEN
TAUNAN = AIMAG( TAU(KK) )
ELSE
TAUNAN = ZERO
END IF
Expand Down
6 changes: 3 additions & 3 deletions lapack-netlib/SRC/claqp3rk.f
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ SUBROUTINE CLAQP3RK( M, N, NRHS, IOFFSET, NB, ABSTOL,
EXTERNAL CGEMM, CGEMV, CLARFG, CSWAP
* ..
* .. Intrinsic Functions ..
INTRINSIC ABS, REAL, CONJG, IMAG, MAX, MIN, SQRT
INTRINSIC ABS, REAL, CONJG, AIMAG, MAX, MIN, SQRT
* ..
* .. External Functions ..
LOGICAL SISNAN
Expand Down Expand Up @@ -739,8 +739,8 @@ SUBROUTINE CLAQP3RK( M, N, NRHS, IOFFSET, NB, ABSTOL,
*
IF( SISNAN( REAL( TAU(K) ) ) ) THEN
TAUNAN = REAL( TAU(K) )
ELSE IF( SISNAN( IMAG( TAU(K) ) ) ) THEN
TAUNAN = IMAG( TAU(K) )
ELSE IF( SISNAN( AIMAG( TAU(K) ) ) ) THEN
TAUNAN = AIMAG( TAU(K) )
ELSE
TAUNAN = ZERO
END IF
Expand Down
5 changes: 3 additions & 2 deletions lapack-netlib/TESTING/EIG/cchkhb2stg.f
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,9 @@ SUBROUTINE CCHKHB2STG( NSIZES, NN, NWDTHS, KK, NTYPES, DOTYPE,
CALL SLASUM( 'CHB', NOUNIT, NERRS, NTESTT )
RETURN
*
9999 FORMAT( ' CCHKHB2STG: ', A, ' returned INFO=', I6, '.', / 9X, 'N=',
$ I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5, ')' )
9999 FORMAT( ' CCHKHB2STG: ', A, ' returned INFO=', I6, '.', / 9X,
$ 'N=', I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5,
$ ')' )
9998 FORMAT( / 1X, A3,
$ ' -- Complex Hermitian Banded Tridiagonal Reduction Routines'
$ )
Expand Down
5 changes: 3 additions & 2 deletions lapack-netlib/TESTING/EIG/dchksb2stg.f
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,9 @@ SUBROUTINE DCHKSB2STG( NSIZES, NN, NWDTHS, KK, NTYPES, DOTYPE,
CALL DLASUM( 'DSB', NOUNIT, NERRS, NTESTT )
RETURN
*
9999 FORMAT( ' DCHKSB2STG: ', A, ' returned INFO=', I6, '.', / 9X, 'N=',
$ I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5, ')' )
9999 FORMAT( ' DCHKSB2STG: ', A, ' returned INFO=', I6, '.', / 9X,
$ 'N=', I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5,
$ ')' )
*
9998 FORMAT( / 1X, A3,
$ ' -- Real Symmetric Banded Tridiagonal Reduction Routines' )
Expand Down
5 changes: 3 additions & 2 deletions lapack-netlib/TESTING/EIG/schksb2stg.f
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,9 @@ SUBROUTINE SCHKSB2STG( NSIZES, NN, NWDTHS, KK, NTYPES, DOTYPE,
CALL SLASUM( 'SSB', NOUNIT, NERRS, NTESTT )
RETURN
*
9999 FORMAT( ' SCHKSB2STG: ', A, ' returned INFO=', I6, '.', / 9X, 'N=',
$ I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5, ')' )
9999 FORMAT( ' SCHKSB2STG: ', A, ' returned INFO=', I6, '.', / 9X,
$ 'N=', I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5,
$ ')' )
*
9998 FORMAT( / 1X, A3,
$ ' -- Real Symmetric Banded Tridiagonal Reduction Routines' )
Expand Down
5 changes: 3 additions & 2 deletions lapack-netlib/TESTING/EIG/zchkhb2stg.f
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,9 @@ SUBROUTINE ZCHKHB2STG( NSIZES, NN, NWDTHS, KK, NTYPES, DOTYPE,
CALL DLASUM( 'ZHB', NOUNIT, NERRS, NTESTT )
RETURN
*
9999 FORMAT( ' ZCHKHB2STG: ', A, ' returned INFO=', I6, '.', / 9X, 'N=',
$ I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5, ')' )
9999 FORMAT( ' ZCHKHB2STG: ', A, ' returned INFO=', I6, '.', / 9X,
$ 'N=', I6, ', JTYPE=', I6, ', ISEED=(', 3( I5, ',' ), I5,
$ ')' )
9998 FORMAT( / 1X, A3,
$ ' -- Complex Hermitian Banded Tridiagonal Reduction Routines'
$ )
Expand Down
2 changes: 1 addition & 1 deletion lapack-netlib/TESTING/LIN/alahd.f
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ SUBROUTINE ALAHD( IOUNIT, PATH )
$ 4X, '10. Random, Last columns are zero starting from',
$ ' MINMN/2+1, CNDNUM = 2', /
$ 4X, '11. Random, Half MINMN columns in the middle are',
$ ' zero starting from MINMN/2-(MINMN/2)/2+1,'
$ ' zero starting from MINMN/2-(MINMN/2)/2+1,',
$ ' CNDNUM = 2', /
$ 4X, '12. Random, Odd columns are ZERO, CNDNUM = 2', /
$ 4X, '13. Random, Even columns are ZERO, CNDNUM = 2', /
Expand Down

0 comments on commit 35334ed

Please sign in to comment.