1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//
// GENERATED FILE
//
use super::*;
use crate::SpiceContext;
use f2rust_std::*;
/// Dummy function for UDFUNS
///
/// Serve as a dummy function for GF routines expecting an UDFUNS
/// argument. It is a no-op routine with an argument signature
/// matching UDFUNS.
///
/// # Brief I/O
///
/// ```text
/// VARIABLE I/O DESCRIPTION
/// -------- --- --------------------------------------------------
/// X I Double precision value, unused.
/// VALUE I Double precision value, unused.
/// ```
///
/// # Detailed Input
///
/// ```text
/// X is a double precision value, unused.
///
/// VALUE is a double precision value, unused.
/// ```
///
/// # Exceptions
///
/// ```text
/// Error free.
/// ```
///
/// # Particulars
///
/// ```text
/// The routine performs no evaluations. It exists for routines
/// expecting an UDFUNS argument. In the cases where UDFUNC is
/// unneeded or unavailable, this routine provides a null operation
/// alternative.
/// ```
///
/// # Author and Institution
///
/// ```text
/// J. Diaz del Rio (ODC Space)
/// E.D. Wright (JPL)
/// ```
///
/// # Version
///
/// ```text
/// - SPICELIB Version 1.0.1, 27-AUG-2021 (JDR)
///
/// Edited the header to comply with NAIF standard.
///
/// - SPICELIB Version 1.0.0, 21-OCT-2013 (EDW)
/// ```
pub fn udf(ctx: &mut SpiceContext, x: &mut f64, value: &mut f64) -> crate::Result<()> {
UDF(x, value, ctx.raw_context())?;
ctx.handle_errors()?;
Ok(())
}
//$Procedure UDF ( Dummy function for UDFUNS )
pub fn UDF(X: &mut f64, VALUE: &mut f64, ctx: &mut Context) -> f2rust_std::Result<()> {
*X = (*X + 0.0);
*VALUE = (*VALUE + 0.0);
Ok(())
}