Adding MPI wrapper class

This commit is contained in:
Mark Berrill committed 2020-01-28 08:51:32 -05:00
1 parent acb2d30454
commit d1f714a82e
125 files changed
+8530 -2541

No files matched your search

+4 -5
View File
@@ -115,11 +115,10 @@ double ReadFromBlock( char *ID, int iproc, int jproc, int kproc, int Nx, int Ny,
int main(int argc, char **argv)
{
// Initialize MPI
int rank, nprocs;
MPI_Init(&argc,&argv);
MPI_Comm comm = MPI_COMM_WORLD;
MPI_Comm_rank(comm,&rank);
MPI_Comm_size(comm,&nprocs);
Utilities::MPI comm( MPI_COMM_WORLD );
int rank = comm.getRank();
int nprocs = comm.getSize();
{
//.......................................................................
// Reading the domain information file
@@ -231,7 +230,7 @@ int main(int argc, char **argv)
fclose(DIST);
}
MPI_Barrier(comm);
comm.barrier();
MPI_Finalize();
return 0;