Skip to content

Commit

Permalink
Move to use ERROR STOP instead of ABORT
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Dec 4, 2024
1 parent 35334ed commit d3b2036
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 78 deletions.
6 changes: 3 additions & 3 deletions ctest/c_cblat1.f
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PROGRAM CCBLAT1
IF (PASS) THEN
WRITE (NOUT,99998)
ELSE
CALL ABORT
ERROR STOP
END IF
20 CONTINUE
*
Expand Down Expand Up @@ -231,7 +231,7 @@ SUBROUTINE CHECK1(SFAC)
CALL ITEST1(ICAMAXTEST(N,CX,INCX),ITRUE3(NP1))
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK1'
CALL ABORT
ERROR STOP
END IF
*
40 CONTINUE
Expand Down Expand Up @@ -515,7 +515,7 @@ SUBROUTINE CHECK2(SFAC)
CALL CTEST(LENY,CY,CT10Y(1,KN,KI),CSIZE3,1.0E0)
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK2'
CALL ABORT
ERROR STOP
END IF
*
40 CONTINUE
Expand Down
10 changes: 5 additions & 5 deletions ctest/c_cblat2.f
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROGRAM CBLAT2
* 'CBLAT2.SNAP' NAME OF SNAPSHOT OUTPUT FILE
* -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
* F LOGICAL FLAG, T TO REWIND SNAPSHOT FILE AFTER EACH RECORD.
* F LOGICAL FLAG, T TO CALL ABORT ON FAILURES.
* F LOGICAL FLAG, T TO ERROR STOP ON FAILURES.
* T LOGICAL FLAG, T TO TEST ERROR EXITS.
* 2 0 TO TEST COLUMN-MAJOR, 1 TO TEST ROW-MAJOR, 2 TO TEST BOTH
* 16.0 THRESHOLD VALUE OF TEST RATIO
Expand Down Expand Up @@ -243,7 +243,7 @@ PROGRAM CBLAT2
$ GO TO 70
60 CONTINUE
WRITE( NOUT, FMT = 9986 )SNAMET
CALL ABORT
ERROR STOP
70 LTEST( I ) = LTESTT
GO TO 50
*
Expand Down Expand Up @@ -283,15 +283,15 @@ PROGRAM CBLAT2
SAME = LCE( YY, YT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9985 )TRANS, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANS = 'T'
CALL CMVCH( TRANS, N, N, ONE, A, NMAX, X, -1, ZERO, Y, -1, YT, G,
$ YY, EPS, ERR, FATAL, NOUT, .TRUE. )
SAME = LCE( YY, YT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9985 )TRANS, SAME, ERR
CALL ABORT
ERROR STOP
END IF
*
* Test each subroutine in turn.
Expand Down Expand Up @@ -419,7 +419,7 @@ PROGRAM CBLAT2
$ CLOSE ( NTRA )
CLOSE ( NOUT )
IF( FATAL ) THEN
CALL ABORT
ERROR STOP
END IF
*
10002 FORMAT( ' COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED' )
Expand Down
14 changes: 7 additions & 7 deletions ctest/c_cblat3.f
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROGRAM CBLAT3
* 'CBLAT3.SNAP' NAME OF SNAPSHOT OUTPUT FILE
* -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
* F LOGICAL FLAG, T TO REWIND SNAPSHOT FILE AFTER EACH RECORD.
* F LOGICAL FLAG, T TO CALL ABORT ON FAILURES.
* F LOGICAL FLAG, T TO ERROR STOP ON FAILURES.
* T LOGICAL FLAG, T TO TEST ERROR EXITS.
* 2 0 TO TEST COLUMN-MAJOR, 1 TO TEST ROW-MAJOR, 2 TO TEST BOTH
* 16.0 THRESHOLD VALUE OF TEST RATIO
Expand Down Expand Up @@ -194,7 +194,7 @@ PROGRAM CBLAT3
$ GO TO 50
40 CONTINUE
WRITE( NOUT, FMT = 9990 )SNAMET
CALL ABORT
ERROR STOP
50 LTEST( I ) = LTESTT
GO TO 30
*
Expand Down Expand Up @@ -237,7 +237,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'C'
CALL CMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -246,7 +246,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
DO 120 J = 1, N
AB( J, NMAX + 1 ) = N - J + 1
Expand All @@ -264,7 +264,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'C'
CALL CMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -273,7 +273,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
*
* Test each subroutine in turn.
Expand Down Expand Up @@ -386,7 +386,7 @@ PROGRAM CBLAT3
$ CLOSE ( NTRA )
CLOSE ( NOUT )
IF( FATAL ) THEN
CALL ABORT
ERROR STOP
END IF
*
10002 FORMAT( ' COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED' )
Expand Down
14 changes: 7 additions & 7 deletions ctest/c_cblat3_3m.f
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROGRAM CBLAT3
* 'CBLAT3.SNAP' NAME OF SNAPSHOT OUTPUT FILE
* -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
* F LOGICAL FLAG, T TO REWIND SNAPSHOT FILE AFTER EACH RECORD.
* F LOGICAL FLAG, T TO CALL ABORT ON FAILURES.
* F LOGICAL FLAG, T TO ERROR STOP ON FAILURES.
* T LOGICAL FLAG, T TO TEST ERROR EXITS.
* 2 0 TO TEST COLUMN-MAJOR, 1 TO TEST ROW-MAJOR, 2 TO TEST BOTH
* 16.0 THRESHOLD VALUE OF TEST RATIO
Expand Down Expand Up @@ -194,7 +194,7 @@ PROGRAM CBLAT3
$ GO TO 50
40 CONTINUE
WRITE( NOUT, FMT = 9990 )SNAMET
CALL ABORT
ERROR STOP
50 LTEST( I ) = LTESTT
GO TO 30
*
Expand Down Expand Up @@ -237,7 +237,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'C'
CALL CMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -246,7 +246,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
DO 120 J = 1, N
AB( J, NMAX + 1 ) = N - J + 1
Expand All @@ -264,7 +264,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'C'
CALL CMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -273,7 +273,7 @@ PROGRAM CBLAT3
SAME = LCE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.RZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
*
* Test each subroutine in turn.
Expand Down Expand Up @@ -386,7 +386,7 @@ PROGRAM CBLAT3
$ CLOSE ( NTRA )
CLOSE ( NOUT )
IF( FATAL ) THEN
CALL ABORT
ERROR STOP
END IF
*
10002 FORMAT( ' COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED' )
Expand Down
10 changes: 5 additions & 5 deletions ctest/c_dblat1.f
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PROGRAM DCBLAT1
IF (PASS) THEN
WRITE (NOUT,99998)
ELSE
CALL ABORT
ERROR STOP
END IF
20 CONTINUE
*
Expand Down Expand Up @@ -139,7 +139,7 @@ SUBROUTINE CHECK0(SFAC)
CALL STEST1(SS,DS1(K),DS1(K),SFAC)
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK0'
CALL ABORT
ERROR STOP
END IF
20 CONTINUE
40 RETURN
Expand Down Expand Up @@ -232,7 +232,7 @@ SUBROUTINE CHECK1(SFAC)
CALL ITEST1(IDAMAXTEST(N,SX,INCX),ITRUE2(NP1))
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK1'
CALL ABORT
ERROR STOP
END IF
60 CONTINUE
80 CONTINUE
Expand Down Expand Up @@ -387,7 +387,7 @@ SUBROUTINE CHECK2(SFAC)
CALL STEST(LENY,SY,STY,SSIZE2(1,1),1.0D0)
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK2'
CALL ABORT
ERROR STOP
END IF
100 CONTINUE
120 CONTINUE
Expand Down Expand Up @@ -475,7 +475,7 @@ SUBROUTINE CHECK3(SFAC)
70 CONTINUE
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK3'
CALL ABORT
ERROR STOP
END IF
40 CONTINUE
60 CONTINUE
Expand Down
10 changes: 5 additions & 5 deletions ctest/c_dblat2.f
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROGRAM DBLAT2
* 'DBLAT2.SNAP' NAME OF SNAPSHOT OUTPUT FILE
* -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
* F LOGICAL FLAG, T TO REWIND SNAPSHOT FILE AFTER EACH RECORD.
* F LOGICAL FLAG, T TO CALL ABORT ON FAILURES.
* F LOGICAL FLAG, T TO ERROR STOP ON FAILURES.
* T LOGICAL FLAG, T TO TEST ERROR EXITS.
* 2 0 TO TEST COLUMN-MAJOR, 1 TO TEST ROW-MAJOR, 2 TO TEST BOTH
* 16.0 THRESHOLD VALUE OF TEST RATIO
Expand Down Expand Up @@ -239,7 +239,7 @@ PROGRAM DBLAT2
$ GO TO 70
60 CONTINUE
WRITE( NOUT, FMT = 9986 )SNAMET
CALL ABORT
ERROR STOP
70 LTEST( I ) = LTESTT
GO TO 50
*
Expand Down Expand Up @@ -279,15 +279,15 @@ PROGRAM DBLAT2
SAME = LDE( YY, YT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9985 )TRANS, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANS = 'T'
CALL DMVCH( TRANS, N, N, ONE, A, NMAX, X, -1, ZERO, Y, -1, YT, G,
$ YY, EPS, ERR, FATAL, NOUT, .TRUE. )
SAME = LDE( YY, YT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9985 )TRANS, SAME, ERR
CALL ABORT
ERROR STOP
END IF
*
* Test each subroutine in turn.
Expand Down Expand Up @@ -415,7 +415,7 @@ PROGRAM DBLAT2
$ CLOSE ( NTRA )
CLOSE ( NOUT )
IF( FATAL ) THEN
CALL ABORT
ERROR STOP
END IF
*
10002 FORMAT( ' COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED' )
Expand Down
14 changes: 7 additions & 7 deletions ctest/c_dblat3.f
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ PROGRAM DBLAT3
* 'DBLAT3.SNAP' NAME OF SNAPSHOT OUTPUT FILE
* -1 UNIT NUMBER OF SNAPSHOT FILE (NOT USED IF .LT. 0)
* F LOGICAL FLAG, T TO REWIND SNAPSHOT FILE AFTER EACH RECORD.
* F LOGICAL FLAG, T TO CALL ABORT ON FAILURES.
* F LOGICAL FLAG, T TO ERROR STOP ON FAILURES.
* T LOGICAL FLAG, T TO TEST ERROR EXITS.
* 2 0 TO TEST COLUMN-MAJOR, 1 TO TEST ROW-MAJOR, 2 TO TEST BOTH
* 16.0 THRESHOLD VALUE OF TEST RATIO
Expand Down Expand Up @@ -189,7 +189,7 @@ PROGRAM DBLAT3
$ GO TO 50
40 CONTINUE
WRITE( NOUT, FMT = 9990 )SNAMET
CALL ABORT
ERROR STOP
50 LTEST( I ) = LTESTT
GO TO 30
*
Expand Down Expand Up @@ -232,7 +232,7 @@ PROGRAM DBLAT3
SAME = LDE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'T'
CALL DMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -241,7 +241,7 @@ PROGRAM DBLAT3
SAME = LDE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
DO 120 J = 1, N
AB( J, NMAX + 1 ) = N - J + 1
Expand All @@ -259,7 +259,7 @@ PROGRAM DBLAT3
SAME = LDE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
TRANSB = 'T'
CALL DMMCH( TRANSA, TRANSB, N, 1, N, ONE, AB, NMAX,
Expand All @@ -268,7 +268,7 @@ PROGRAM DBLAT3
SAME = LDE( CC, CT, N )
IF( .NOT.SAME.OR.ERR.NE.ZERO )THEN
WRITE( NOUT, FMT = 9989 )TRANSA, TRANSB, SAME, ERR
CALL ABORT
ERROR STOP
END IF
*
* Test each subroutine in turn.
Expand Down Expand Up @@ -380,7 +380,7 @@ PROGRAM DBLAT3
$ CLOSE ( NTRA )
CLOSE ( NOUT )
IF( FATAL ) THEN
CALL ABORT
ERROR STOP
END IF
*
10002 FORMAT( ' COLUMN-MAJOR AND ROW-MAJOR DATA LAYOUTS ARE TESTED' )
Expand Down
10 changes: 5 additions & 5 deletions ctest/c_sblat1.f
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ PROGRAM SCBLAT1
IF (PASS) THEN
WRITE (NOUT,99998)
ELSE
CALL ABORT
ERROR STOP
END IF
20 CONTINUE
*
Expand Down Expand Up @@ -139,7 +139,7 @@ SUBROUTINE CHECK0(SFAC)
CALL STEST1(SS,DS1(K),DS1(K),SFAC)
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK0'
CALL ABORT
ERROR STOP
END IF
20 CONTINUE
40 RETURN
Expand Down Expand Up @@ -232,7 +232,7 @@ SUBROUTINE CHECK1(SFAC)
CALL ITEST1(ISAMAXTEST(N,SX,INCX),ITRUE2(NP1))
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK1'
CALL ABORT
ERROR STOP
END IF
60 CONTINUE
80 CONTINUE
Expand Down Expand Up @@ -387,7 +387,7 @@ SUBROUTINE CHECK2(SFAC)
CALL STEST(LENY,SY,STY,SSIZE2(1,1),1.0E0)
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK2'
CALL ABORT
ERROR STOP
END IF
100 CONTINUE
120 CONTINUE
Expand Down Expand Up @@ -482,7 +482,7 @@ SUBROUTINE CHECK3(SFAC)
70 CONTINUE
ELSE
WRITE (NOUT,*) ' Shouldn''t be here in CHECK3'
CALL ABORT
ERROR STOP
END IF
40 CONTINUE
60 CONTINUE
Expand Down
Loading

0 comments on commit d3b2036

Please sign in to comment.