diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2012-02-27 07:13:50 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2012-02-27 07:13:50 +0000 |
| commit | 4a90e9eaf0a59b66db1187cf892b083b01ac2034 (patch) | |
| tree | 71ec918eccb73fcf0a2753154bb98b5c6df5ede4 /src/multistresstest.c | |
| parent | 5fae87a9c7d801b9d8e8e1b55f7670ba51aa9ee9 (diff) | |
| download | PROJ-4a90e9eaf0a59b66db1187cf892b083b01ac2034.tar.gz PROJ-4a90e9eaf0a59b66db1187cf892b083b01ac2034.zip | |
added optional multistresstest target, slightly extended multistresstest
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2174 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/multistresstest.c')
| -rw-r--r-- | src/multistresstest.c | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/multistresstest.c b/src/multistresstest.c index 61cbc821..bb7dab21 100644 --- a/src/multistresstest.c +++ b/src/multistresstest.c @@ -33,19 +33,20 @@ #include "proj_api.h" #define num_threads 10 -#define num_iterations 100000 +#define num_iterations 1000000 #define reinit_every_iteration 0 typedef struct { const char *src_def; const char *dst_def; - int skip; - double src_x, src_y, src_z; double dst_x, dst_y, dst_z; int dst_error; + int skip; + + } TestItem; TestItem test_list[] = { @@ -57,6 +58,11 @@ TestItem test_list[] = { { "+proj=utm +zone=11 +datum=NAD83", "+proj=latlong +datum=NAD27", + 150000.0, 3000000.0, 0.0, + }, + { + "+proj=utm +zone=11 +datum=NAD83", + "+proj=latlong +nadgrids=@null +ellps=WGS84", 150000.0, 3000000.0, 0.0, }, { @@ -209,7 +215,6 @@ static void *TestThread( void *pData ) #if reinit_every_iteration == 0 for( i = 0; i < test_count; i++ ) { - TestItem *test = test_list + i; pj_free( src_pj_list[i] ); pj_free( dst_pj_list[i] ); } @@ -224,6 +229,8 @@ static void *TestThread( void *pData ) repeat_count, test_count ); active_thread_count--; + + return NULL; } /************************************************************************/ @@ -274,6 +281,10 @@ int main( int argc, char **argv ) pj_free( dst_pj ); test->skip = 0; + +#ifdef notdef + printf( "Test %d - output %.14g,%.14g,%g\n", i, test->dst_x, test->dst_y, test->dst_z ); +#endif } printf( "%d tests initialized.\n", test_count ); @@ -301,5 +312,6 @@ int main( int argc, char **argv ) sleep( 1 ); printf( "all tests complete.\n" ); - + + return 0; } |
