Changeset 5105 for LMDZ6/branches/Amaury_dev/libf/misc/xercnt.f90
- Timestamp:
- Jul 23, 2024, 7:14:34 PM (8 weeks ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/misc/xercnt.f90
r5104 r5105 1 *DECK XERCNT2 3 4 C***BEGIN PROLOGUE XERCNT5 C***SUBSIDIARY6 C***PURPOSE Allow user control over handling of errors.7 C***LIBRARY SLATEC (XERROR)8 C***CATEGORY R3C9 C***TYPE ALL (XERCNT-A)10 C***KEYWORDS ERROR, XERROR11 C***AUTHOR Jones, R. E., (SNLA)12 C***DESCRIPTION13 C 14 CAbstract15 CAllows user control over handling of individual errors.16 CJust after each message is recorded, but before it is17 Cprocessed any further (i.e., before it is printed or18 Ca decision to abort is made), a CALL is made to XERCNT.19 CIf the user has provided his own version of XERCNT, he20 Ccan then override the value of KONTROL used in processing21 Cthis message by redefining its value.22 CKONTRL may be set to any value from -2 to 2.23 CThe meanings for KONTRL are the same as in XSETF, except24 Cthat the value of KONTRL changes only for this message.25 CIf KONTRL is set to a value outside the range from -2 to 2,26 Cit will be moved back into that range.27 C 28 CDescription of Parameters29 C 30 C--Input--31 CLIBRAR - the library that the routine is in.32 CSUBROU - the SUBROUTINE that XERMSG is being called from33 CMESSG - the first 20 characters of the error message.34 CNERR - same as in the CALL to XERMSG.35 CLEVEL - same as in the CALL to XERMSG.36 CKONTRL - the current value of the control flag as set37 Cby a CALL to XSETF.38 C 39 C--Output--40 CKONTRL - the new value of KONTRL. If KONTRL is not41 Cdefined, it will remain at its original value.42 CThis changed value of control affects only43 Cthe current occurrence of the current message.44 C 45 C***REFERENCES R. E. Jones and D. K. Kahaner, XERROR, the SLATEC46 CError-handling Package, SAND82-0800, Sandia47 CLaboratories, 1982.48 C***ROUTINES CALLED (NONE)49 C***REVISION HISTORY (YYMMDD)50 C790801 DATE WRITTEN51 C861211 REVISION DATE from Version 3.252 C891214 Prologue converted to Version 4.0 format. (BAB)53 C900206 Routine changed from user-callable to subsidiary. (WRB)54 C900510 Changed calling sequence to include LIBRARY and SUBROUTINE55 Cnames, changed routine name from XERCTL to XERCNT. (RWC)56 C920501 Reformatted the REFERENCES section. (WRB)57 C***END PROLOGUE XERCNT58 CHARACTER*(*)LIBRAR, SUBROU, MESSG59 INTEGERNERR, LEVEL, KONTRL60 C***FIRST EXECUTABLE STATEMENT XERCNT61 RETURN 62 END 1 !DECK XERCNT 2 SUBROUTINE XERCNT (LIBRAR, SUBROU, MESSG, NERR, LEVEL, KONTRL) 3 IMPLICIT NONE 4 !***BEGIN PROLOGUE XERCNT 5 !***SUBSIDIARY 6 !***PURPOSE Allow user control over handling of errors. 7 !***LIBRARY SLATEC (XERROR) 8 !***CATEGORY R3C 9 !***TYPE ALL (XERCNT-A) 10 !***KEYWORDS ERROR, XERROR 11 !***AUTHOR Jones, R. E., (SNLA) 12 !***DESCRIPTION 13 ! 14 ! Abstract 15 ! Allows user control over handling of individual errors. 16 ! Just after each message is recorded, but before it is 17 ! processed any further (i.e., before it is printed or 18 ! a decision to abort is made), a CALL is made to XERCNT. 19 ! If the user has provided his own version of XERCNT, he 20 ! can then override the value of KONTROL used in processing 21 ! this message by redefining its value. 22 ! KONTRL may be set to any value from -2 to 2. 23 ! The meanings for KONTRL are the same as in XSETF, except 24 ! that the value of KONTRL changes only for this message. 25 ! If KONTRL is set to a value outside the range from -2 to 2, 26 ! it will be moved back into that range. 27 ! 28 ! Description of Parameters 29 ! 30 ! --Input-- 31 ! LIBRAR - the library that the routine is in. 32 ! SUBROU - the SUBROUTINE that XERMSG is being called from 33 ! MESSG - the first 20 characters of the error message. 34 ! NERR - same as in the CALL to XERMSG. 35 ! LEVEL - same as in the CALL to XERMSG. 36 ! KONTRL - the current value of the control flag as set 37 ! by a CALL to XSETF. 38 ! 39 ! --Output-- 40 ! KONTRL - the new value of KONTRL. If KONTRL is not 41 ! defined, it will remain at its original value. 42 ! This changed value of control affects only 43 ! the current occurrence of the current message. 44 ! 45 !***REFERENCES R. E. Jones and D. K. Kahaner, XERROR, the SLATEC 46 ! Error-handling Package, SAND82-0800, Sandia 47 ! Laboratories, 1982. 48 !***ROUTINES CALLED (NONE) 49 !***REVISION HISTORY (YYMMDD) 50 ! 790801 DATE WRITTEN 51 ! 861211 REVISION DATE from Version 3.2 52 ! 891214 Prologue converted to Version 4.0 format. (BAB) 53 ! 900206 Routine changed from user-callable to subsidiary. (WRB) 54 ! 900510 Changed calling sequence to include LIBRARY and SUBROUTINE 55 ! names, changed routine name from XERCTL to XERCNT. (RWC) 56 ! 920501 Reformatted the REFERENCES section. (WRB) 57 !***END PROLOGUE XERCNT 58 CHARACTER(len=*) :: LIBRAR, SUBROU, MESSG 59 INTEGER :: NERR, LEVEL, KONTRL 60 !***FIRST EXECUTABLE STATEMENT XERCNT 61 62 END SUBROUTINE XERCNT
Note: See TracChangeset
for help on using the changeset viewer.