Fixed bug in programm.
This commit is contained in:
@@ -7,7 +7,8 @@
|
||||
//
|
||||
|
||||
#include "simulation.hpp"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -20,6 +21,13 @@ int main(int argc, char *argv[]) {
|
||||
if (rank==0) {
|
||||
cout<<"Number CPUs: "<<size<<"\n"<<endl;
|
||||
}
|
||||
|
||||
/*
|
||||
std::cout << "Process " << getpid() << " is " << rank
|
||||
<< " of " << size << " processes" << std::endl;
|
||||
if (rank == 0) sleep(600);
|
||||
*/
|
||||
|
||||
Simulation Sim;
|
||||
|
||||
int start_time = MPI_Wtime();
|
||||
@@ -30,4 +38,3 @@ int main(int argc, char *argv[]) {
|
||||
MPI_Finalize();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user