Skip to content
Snippets Groups Projects
Commit a45b2891 authored by Samuel Debionne's avatar Samuel Debionne
Browse files

Oops

parent 921e29db
No related branches found
No related tags found
No related merge requests found
Pipeline #5986 failed
......@@ -8,16 +8,16 @@
class slsDetectorMpiUsers
{
public:
slsDetectorMpiUsers(bool _is_master, int _id = 0)
: m_is_master(_is_master),
slsDetectorMpiUsers(int _id = 0)
: m_world_size(0),
m_rank(0),
m_detector(NULL)
{
// Initialize the MPI environment
MPI_Init(NULL, NULL);
// Get the number of processes
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
MPI_Comm_size(MPI_COMM_WORLD, &m_world_size);
// Get the rank of the process
MPI_Comm_rank(MPI_COMM_WORLD, &m_rank);
......@@ -49,7 +49,7 @@ public:
return res;
}
int setOnlsetReceiverOnlineine(int const online = -1)
int setReceiverOnline(int const online = -1)
{
int res;
if (is_master())
......@@ -585,11 +585,11 @@ public:
}
private:
bool is_master() const { return m_is_master; }
bool is_master() const { return m_rank == 0; }
slsDetectorUsers *m_detector;
bool m_is_master;
int m_world_size;
int m_rank;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment