5 /* TODO: Replace with file read. */
8 void array_contents(numtype array[], unsigned long size) {
9 printf ("[%li", array[0]);
10 for (unsigned long i = 1; i < size; i++) {
11 printf (", %li", array[i]);
17 int main (int argc, char* argv[]) {
18 numtype numarray[NUMBERS];
20 //unsigned int countarray[NUMBERS];
23 //TODO: read num file here.
24 //first value in file = numcount
25 for (size = 0; size < NUMBERS; size++) {
29 /* might want to comment this out, if numarray is big */
30 array_contents(numarray, size);
32 printf("init done starting algorithm. size: %li\n", size);
33 startTime = omp_get_wtime();
34 algorithm(numarray, size, NULL);
35 printf("DONE. took %f seconds.\n", omp_get_wtime()-startTime);
36 printf ("result: %li\n", numarray[(size-1)]);
38 /* might want to comment this out, if numarray is big */
39 array_contents(numarray, size);