/* master program for bug population - bifurcation map of m*y*(1-y) */ #include #include #define min 1 /* minimum for m */ #define max 4 /* maximum for m */ #define step 0.1 /* m range for slave */ #define nstep 100.0 /* number of steps for slave */ #define skip 200 /* results slave should skip */ #define count 300 /* results slave should record */ main() { struct pvmhostinfo *hostp; int bufid, check, dum, i, nhost, narch, ptid, stid; char name[64]; double buf[5], m; ptid = pvm_mytid(); /* get your PVM ID number */ pvm_config( &nhost, &narch, &hostp ); /* configuration of virtual machine */ gethostname(name, 64); printf("The master process runs on %s \n", name); printf("I found the following hosts in your virtual machine\n"); for (i = 0; i < nhost; i++) { printf("\t%s\n", hostp[i].hi_name); } printf("\nStarting slaves\n"); for (i=0; i