1 /*
2  *  - - - - - - - - - - - - - - - -
3  *   g a l _ u t c 2 t t _ t e s t
4  *  - - - - - - - - - - - - - - - -
5  *
6  *  This routine is part of the General Astrodynamics Library
7  *
8  *  Description:
9  *
10  *     Test gal_utc2tt routine.
11  *
12  *  Status:
13  *
14  *     Internal test routine
15  *
16  *  Called:
17  *
18  *     gal_viv
19  *     gal_vdv
20  *     gal_utc2tt
21  *
22  *  This Revision:
23  *
24  *     2008 April 13
25  *
26  *  Copyright (C) 2008 Paul C. L. Willmott. See notes at end.
27  */
28 
29 #include "gal_utc2tt_test.h"
30 #include "gal_utc2tt.h"
31 #include "gal_const.h"
32 #include "gal_test.h"
33 
34 void
gal_utc2tt_test()35 gal_utc2tt_test
36  (
37  )
38 
39 {
40 
41     int j ;
42     double tt1, tt2 ;
43 
44     extern int gal_tfunc ;
45 
46 /*
47  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
48  */
49 
50     j = gal_utc2tt ( 2451545.0, 0.0, &tt1, &tt2 ) ;
51     gal_vdv ( tt1, 2451545.0                  , 0.0, "gal_utc2tt", "tt1" ) ;
52     gal_vdv ( tt2, ( 32.0 + 32.184 ) / GAL_D2S, 0.0, "gal_utc2tt", "tt2" ) ;
53     gal_viv ( j, 0, "gal_utc2tt", "a" ) ;
54 
55     gal_tfunc++ ;
56 
57 /*
58  * Finished.
59  */
60 
61 }
62 
63 /*
64  *  gal - General Astrodynamics Library
65  *  Copyright (C) 2008 Paul C. L. Willmott
66  *
67  *  This program is free software; you can redistribute it and/or modify
68  *  it under the terms of the GNU General Public License as published by
69  *  the Free Software Foundation; either version 2 of the License, or
70  *  (at your option) any later version.
71  *
72  *  This program is distributed in the hope that it will be useful,
73  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
74  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
75  *  GNU General Public License for more details.
76  *
77  *  You should have received a copy of the GNU General Public License along
78  *  with this program; if not, write to the Free Software Foundation, Inc.,
79  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
80  *
81  *  Contact:
82  *
83  *  Paul Willmott
84  *  vp9mu@amsat.org
85  */
86