#include #include #include #define image_height 4096 // Size of output image #define image_width 4096 // Size of output image #define max_count 100 // max iter for each point in image #define max_size 4 int image[image_height][image_width]; int main() { int count, pxval; double xinc, yinc, xstart, ystart, yend, xend, ymid, xmid; double tmp, zre, zim, p_imag, p_real, mxval, mnval, t; char c; FILE *fp; // // t = omp_get_wtime(); // // Parameters of the fractal space that are displayed // yinc = 1e-6; xinc = 1e-6; ymid = 0.08405; xmid = -1.2540; // ystart = ymid - (yinc * image_height/2); xstart = xmid - (xinc * image_width/2); yend = ymid + (yinc * image_height/2); xend = xmid + (xinc * image_width/2); #pragma omp parallel private (p_real, p_imag, zre, zim, count ) { printf("I am thread #%d of %d threads..\n",omp_get_thread_num(), omp_get_num_threads()); #pragma omp for for ( int i=0; i