Skip to content

Commit

Permalink
mpiwrappper update with comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellMakr committed Apr 5, 2015
1 parent 9ffcd1a commit b521c35
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion MandelBox(GreenBlackRed)/mpiwrapper.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/**
* Iheatu Wogu : 0850010
* Warren : 1131525
* Graeme :
* Maciej :
*/


/**
* mpiwrapper.cc
* object filename : mpirunner
*
* mpiwarapper takes the object file mandelbox
* and passs different parameter files. A group of
* passes to mandelbox are handled by every processor
* passed in by mpi.
*
* The wrapper allows ranges in order to facilitate
* tests. These test are
*
*/


#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -31,7 +54,7 @@ int main(int argc, char* argv[]) {
MPI_Comm_rank(MPI_COMM_WORLD, &my_rank);
MPI_Comm_size(MPI_COMM_WORLD, &p);


// pass in range of images that mpi is too compute
start = atoi(argv[1]);
end = atoi(argv[2]);
int block = (end - start)/ p;
Expand Down

0 comments on commit b521c35

Please sign in to comment.