Changeset 5446 for trunk/psLib/test/astro/tst_psEarthOrientation.c
- Timestamp:
- Oct 25, 2005, 3:20:15 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astro/tst_psEarthOrientation.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astro/tst_psEarthOrientation.c
r5306 r5446 6 6 * @author d-Rob, MHPCC 7 7 * 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-10- 13 20:23:57$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-10-26 01:20:15 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 15 15 #include "pslib_strict.h" 16 16 17 static psS32 testEOCParallax(void); 18 static psS32 testAberration(void); 19 static psS32 testGravityDeflect(void); 20 static psS32 testEOCPrecession(void); 21 static psS32 testEOCPolar(void); 22 static psS32 testEOCNutation(void); 23 static psS32 testSphereRotTransforms(void); 24 17 25 testDescription tests[] = { 26 {testEOCParallax, 666, "psEOCParallax()", 0, false}, 27 {testAberration, 667, "psAberration()", 0, false}, 28 {testGravityDeflect, 668, "psGravityDeflect()", 0, false}, 29 {testEOCPrecession, 669, "psEOCPrecession()", 0, false}, 30 {testEOCPolar, 670, "psEOCPolar()", 0, false}, 31 {testEOCNutation, 671, "psEOCNutation()", 0, false}, 32 {testSphereRotTransforms, 672, "psSphereRotTransforms()", 0, false}, 18 33 {NULL} 19 34 }; … … 23 38 psLogSetLevel( PS_LOG_INFO ); 24 39 25 return ( ! runTestSuite( stderr, "ps Coord", tests, argc, argv ) );40 return ( ! runTestSuite( stderr, "psEarthOrientation", tests, argc, argv ) ); 26 41 } 27 42 43 psS32 testEOCParallax(void) 44 { 28 45 46 return 0; 47 } 29 48 49 psS32 testAberration(void) 50 { 51 52 return 0; 53 } 54 55 psS32 testGravityDeflect(void) 56 { 57 58 psSphere *actual = NULL; 59 psSphere *apparent = psSphereAlloc(); 60 psSphere *sun = psSphereAlloc(); 61 62 sun->r = 0.2; 63 sun->d = 0.2; 64 apparent->r = 0.2035; 65 apparent->d = 0.2035; 66 67 actual = psGravityDeflection(apparent, actual, sun); 68 psSphere *result = psSphereSetOffset(apparent, actual, PS_SPHERICAL, PS_RADIAN); 69 printf("\nApparent r,d = %.13g,%.13g Actual r,d = %.13g, %.13g \n", 70 apparent->r, apparent->d, result->r, result->d); 71 psFree(result); 72 psFree(actual); 73 psFree(apparent); 74 psFree(sun); 75 76 return 0; 77 } 78 79 psS32 testEOCPrecession(void) 80 { 81 82 return 0; 83 } 84 85 psS32 testEOCPolar(void) 86 { 87 88 return 0; 89 } 90 91 psS32 testEOCNutation(void) 92 { 93 94 return 0; 95 } 96 97 psS32 testSphereRotTransforms(void) 98 { 99 100 return 0; 101 } 102
Note:
See TracChangeset
for help on using the changeset viewer.
