Changeset 2204 for trunk/psLib/test/astronomy/tst_psCoord.c
- Timestamp:
- Oct 26, 2004, 2:57:34 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/astronomy/tst_psCoord.c (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/tst_psCoord.c
r2201 r2204 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2004-10-2 6 22:51:56$8 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2004-10-27 00:57:31 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 15 15 #include "pslib.h" 16 16 17 static inttest1( void );18 static inttest1b( void );19 static inttest1c( void );20 static inttest2( void );21 static inttest3( void );22 static inttest4( void );23 static inttest5( void );24 static inttest6( void );25 static inttest7( void );26 static inttest8( void );27 static inttest20( void );28 static inttest21( void );29 static inttest40( void );30 static inttest41( void );17 static psS32 test1( void ); 18 static psS32 test1b( void ); 19 static psS32 test1c( void ); 20 static psS32 test2( void ); 21 static psS32 test3( void ); 22 static psS32 test4( void ); 23 static psS32 test5( void ); 24 static psS32 test6( void ); 25 static psS32 test7( void ); 26 static psS32 test8( void ); 27 static psS32 test20( void ); 28 static psS32 test21( void ); 29 static psS32 test40( void ); 30 static psS32 test41( void ); 31 31 32 32 testDescription tests[] = { … … 56 56 57 57 58 int main( intargc, char* argv[] )58 psS32 main( psS32 argc, char* argv[] ) 59 59 { 60 60 psLogSetLevel( PS_LOG_INFO ); … … 87 87 #define X0_SMALL 2.0 88 88 89 inttest1( void )89 psS32 test1( void ) 90 90 { 91 91 float tmpF32; 92 inttestStatus = 0;92 psS32 testStatus = 0; 93 93 psSphereTransform *myST = psSphereTransformAlloc(NPLAT, X0_BIG, X0_SMALL); 94 94 … … 122 122 #define NY_TERMS 4 123 123 #define NZ_TERMS 5 124 inttest1b( void )125 { 126 inttestStatus = 0;124 psS32 test1b( void ) 125 { 126 psS32 testStatus = 0; 127 127 psPlaneTransform *myPT = psPlaneTransformAlloc(NX_TERMS, NY_TERMS); 128 128 … … 148 148 return(testStatus); 149 149 } 150 inttest1c( void )151 { 152 inttestStatus = 0;150 psS32 test1c( void ) 151 { 152 psS32 testStatus = 0; 153 153 psPlaneDistort *myPD = psPlaneDistortAlloc(NW_TERMS, NX_TERMS, NY_TERMS, NZ_TERMS); 154 154 … … 195 195 #define N 10 196 196 // We do a simple identity transformation on a few x,y pairs. 197 inttest2( void )198 { 199 inti;200 inttestStatus = 0;197 psS32 test2( void ) 198 { 199 psS32 i; 200 psS32 testStatus = 0; 201 201 psPlane in; 202 202 psPlane out; … … 235 235 // We do a simple identity transformation on a few x,y pairs. For x and y, 236 236 // we add in the COLOR and MAGNITUDE. 237 inttest3( void )238 { 239 inti;240 inttestStatus = 0;237 psS32 test3( void ) 238 { 239 psS32 i; 240 psS32 testStatus = 0; 241 241 psPlane in; 242 242 psPlane out; … … 277 277 #define DEG_INC 30.0 278 278 // We do a simple identity transformation on a few RA, DEC pairs. 279 inttest4( void )280 { 281 inttestStatus = 0;279 psS32 test4( void ) 280 { 281 psS32 testStatus = 0; 282 282 psSphere in; 283 283 psSphere out; … … 315 315 } 316 316 317 inttest5( void )318 { 319 inttestStatus = 0;317 psS32 test5( void ) 318 { 319 psS32 testStatus = 0; 320 320 psTime* now = psTimeGetTime(PS_TIME_UTC); 321 321 struct tm *tm_time = psTimeToTM(now); … … 354 354 355 355 356 inttest6( void )357 { 358 inttestStatus = 0;356 psS32 test6( void ) 357 { 358 psS32 testStatus = 0; 359 359 psTime* now = psTimeGetTime(PS_TIME_UTC); 360 360 struct tm *tm_time = psTimeToTM(now); … … 393 393 394 394 395 inttest7( void )396 { 397 inttestStatus = 0;395 psS32 test7( void ) 396 { 397 psS32 testStatus = 0; 398 398 // XXX: This test code is simply a copy of the original source code. 399 399 double phi = 62.6; … … 426 426 } 427 427 428 inttest8( void )429 { 430 inttestStatus = 0;428 psS32 test8( void ) 429 { 430 psS32 testStatus = 0; 431 431 // XXX: This test code is simply a copy of the original source code. 432 432 double phi = -62.6; … … 459 459 } 460 460 461 inttest20( void )462 { 463 inttestStatus = 0;461 psS32 test20( void ) 462 { 463 psS32 testStatus = 0; 464 464 psSphere in; 465 465 double R; … … 553 553 554 554 #define SPACE_INC 10.0 555 inttest21( void )556 { 557 inttestStatus = 0;555 psS32 test21( void ) 556 { 557 psS32 testStatus = 0; 558 558 psPlane in; 559 559 double R; … … 649 649 } 650 650 651 inttest40( void )652 { 653 inttestStatus = 0;651 psS32 test40( void ) 652 { 653 psS32 testStatus = 0; 654 654 psSphere position1; 655 655 psSphere position2; … … 714 714 } 715 715 716 inttest41( void )717 { 718 inttestStatus = 0;716 psS32 test41( void ) 717 { 718 psS32 testStatus = 0; 719 719 psSphere position1; 720 720 psSphere *position2;
Note:
See TracChangeset
for help on using the changeset viewer.
