search for: randarray

Displaying 1 result from an estimated 1 matches for "randarray".

Did you mean: raidarray
2003 Dec 01
2
help with random numbers and Rmpi
...9;t right mpi.comm.free() out } ************************************************************************* rand.c ************************************************************************* #include <mpi.h> #include <sprng.h> int main(int argc, char **argv) { double rand; double* randarray; MPI_Comm slavecomm, all_processes; /*Initialize MPI*/ MPI_Init(&argc, &argv); MPI_Comm_get_parent(&slavecomm); MPI_Intercomm_merge(slavecomm, 1, &all_processes); /*How many processes are there?*/ MPI_Comm_size(all_processes, &size); /*Which one am I?*/ MP...