excess |
Table of contents
ProcedureEXCESS ( Report an excess of elements in a cell ) SUBROUTINE EXCESS ( NUMBER, STRUCT ) AbstractSet the long error message so as to indicate the number of excess elements encountered by a routine operating on cells or on data structures based on cells. Required_ReadingCELLS KeywordsCELLS ERROR DeclarationsIMPLICIT NONE INTEGER NUMBER CHARACTER*(*) STRUCT Brief_I/OVARIABLE I/O DESCRIPTION -------- --- -------------------------------------------------- NUMBER I Number of excess elements. STRUCT I Name of the data structure. Detailed_InputNUMBER is the number of excess elements encountered. This may be zero or negative, which indicates no excess. STRUCT is the name of the data structure being manipulated. Typically, this is one of the strings: 'cell', 'set', or 'symbol table'. However, it may be any character string. STRUCT should NOT end in a period. The period at the end of the message is supplied automatically. Detailed_OutputNone. ParametersNone. Exceptions1) This routine does not detect any errors. FilesNone. ParticularsThis routine is part of the SPICELIB error handling mechanism. EXCESS sets the long error message. The message has the form: An excess of <NUMBER> element(s) could not be accommodated in the output <STRUCT>. Leading and trailing blanks in STRUCT are removed. If there is no excess (NUMBER is zero or negative), then is blank. ExamplesThe response of EXCESS to a variety of inputs is illustrated below. NUMBER = 1 STRUCT = 'set' ERROR = 'An excess of 1 element could not be accommodated in the output set.' NUMBER = 5 STRUCT = 'stack' ERROR = An excess of 5 elements could not be accommodated in the output stack.' NUMBER = 0 STRUCT = ERROR = ' ' NUMBER = -6 STRUCT = ERROR = ' ' In particular, note that EXCESS does not set the long error message when the number of excess elements is not positive. Also, the singular 'element' is used for an excess of one, while the plural 'elements' is used for all other positive excesses. RestrictionsNone. Literature_ReferencesNone. Author_and_InstitutionN.J. Bachman (JPL) C.A. Curzon (JPL) J. Diaz del Rio (ODC Space) W.L. Taber (JPL) I.M. Underwood (JPL) VersionSPICELIB Version 1.1.0, 13-AUG-2021 (JDR) Added IMPLICIT NONE statement. Edited the header to comply with NAIF standard. SPICELIB Version 1.0.1, 10-MAR-1992 (WLT) Comment section for permuted index source lines was added following the header. SPICELIB Version 1.0.0, 31-JAN-1990 (CAC) (WLT) (IMU) (NJB) |
Fri Dec 31 18:36:21 2021