Toggle navigation
Ocean Color Science Software
Jump to content
ocssw
V2022
web
ocssw
ocssw_src
src
geogen_modis
imsl_error.c
Go to the documentation of this file.
1
/*
2
$Log: imsl_error.c,v $
3
Revision 4.3 2003/08/28 16:06:26 kuyper
4
Corrected prolog.
5
6
Revision 4.2 2003/06/05 15:56:52 kuyper
7
Corrected lists of externals, and location of revision history.
8
9
Revision 4.1 2003/05/19 19:11:28 kuyper
10
Reverse engineered (with immense simplification) from IMSL library
11
documentation.
12
13
James Kuyper Jr. kuyper@saicmodis.com
14
*/
15
16
#include <stdarg.h>
17
#include "
imsl_wrap.h
"
18
#include "
pseudo_imsl.h
"
19
20
Imsl_code
IMSL_error_code
;
21
22
#if defined(__alpha) && defined(__osf__)
23
int
24
#else
25
long
26
#endif
27
IMSL_DECL
imsl_error_code
(
28
void
29
)
30
/*******************************************************************************
31
!C
32
!Description:
33
Gets the code corresponding to the error message from the last
34
pseudo-IMSL function called.
35
36
!Input Parameters:
37
None.
38
39
!Output Parameters:
40
None
41
42
Return Value:
43
This function returns the error message code from the last pseudo-IMSL
44
function called. The include file imsl_wrap.h defines a name for each
45
error code.
46
47
Externally Defined:
48
__alpha Set by certain compilers
49
__osf__ Set by certain compilers
50
IMSL_DECL "imsl_wrap.h"
51
IMSL_error_code imsl_error.c
52
53
Called by:
54
GEO_cumulate_Gring
55
GEO_interp_mirr_enc
56
GEO_prepare_mirr_data
57
58
Routines Called:
59
None
60
61
!Revision History:
62
See top
63
64
Requirements:
65
66
!Team-unique Header:
67
This software is developed by the MODIS Science Data Support
68
Team for the National Aeronautics and Space Administration,
69
Goddard Space Flight Center, under contract NAS5-32373.
70
71
References and Credits
72
Reverse engineered from the "IMSL C/Math/Library", copyright Visual
73
Numerics, Inc. 1999-2001
74
75
!END**************************************************************************
76
*/
77
{
78
return
IMSL_error_code
;
79
}
80
81
void
IMSL_DECL
imsl_error_options
(
82
int
arg,
83
...
84
)
85
/*******************************************************************************
86
!C
87
!Description:
88
Ignores attempts to set various error handling options. This function
89
exists solely to maintain compatibility with code written to use the
90
real IMSL function. The only valid arguments for this function are the
91
ones that turn off message display, and those arguments are valid
92
because message display will be turned off, whether or not this
93
function is ever called.
94
The only method the real IMSL function has to indicate invalid
95
arguments is by printing an error message and aborting the program;
96
this is unacceptable behavior for delivered code, so there's absolutely
97
nothing useful for this version to do.
98
A function was used, rather than a do-nothing function-like macro,
99
solely to force error messages if this function is called with no
100
arguments, or with a first argument that can't be implicitly converted
101
to an 'int'.
102
103
!Input Parameters:
104
arg Identifies the type of the first set of optional arguments
105
... Matches an arbitrary list of optional arguments, which will also
106
be ignored.
107
108
!Output Parameters:
109
None
110
111
Return Values:
112
None
113
114
Externally Defined:
115
IMSL_DECL "imsl_wrap.h"
116
117
Called by:
118
main
119
120
Routines Called:
121
None
122
123
!Revision History:
124
See top
125
126
James Kuyper Jr. kuyper@saicmodis.com
127
128
Requirements:
129
None
130
131
!Team-unique Header:
132
This software is developed by the MODIS Science Data Support
133
Team for the National Aeronautics and Space Administration,
134
Goddard Space Flight Center, under contract NAS5-32373.
135
136
References and Credits
137
"IMSL C/Math/Library", copyright 1990-2001 Visual Numerics, Inc.
138
139
Design Notes
140
!END**************************************************************************
141
*/
142
{
143
/* The only reason there's any body to this function, is to turn off the
144
* warning messages about a function that doesn't actually do anything with
145
* any of its parameters.
146
*/
147
va_list ap;
148
va_start(ap, arg);
149
arg = va_arg(ap,
int
);
150
va_end(ap);
151
}
152
IMSL_error_code
Imsl_code IMSL_error_code
Definition:
imsl_error.c:20
imsl_wrap.h
imsl_error_code
long IMSL_DECL imsl_error_code(void)
Definition:
imsl_error.c:27
pseudo_imsl.h
imsl_error_options
void IMSL_DECL imsl_error_options(int arg,...)
Definition:
imsl_error.c:81