mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Solving minor bug in compilation
This commit is contained in:
		@@ -53,9 +53,10 @@ void CartesianCommunicator::Init(int *argc, char ***argv) {
 | 
				
			|||||||
  ShmInitGeneric();
 | 
					  ShmInitGeneric();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CartesianCommunicator::~CartesianCommunicator(){
 | 
					CartesianCommunicator::~CartesianCommunicator()
 | 
				
			||||||
   if (communicator && !MPI::Is_finalized())
 | 
					{
 | 
				
			||||||
       MPI_Comm_free(&communicator);
 | 
					  if (communicator && !MPI::Is_finalized())
 | 
				
			||||||
 | 
					    MPI_Comm_free(&communicator);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void CartesianCommunicator::GlobalSum(uint32_t &u){
 | 
					void CartesianCommunicator::GlobalSum(uint32_t &u){
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -53,9 +53,10 @@ void CartesianCommunicator::Init(int *argc, char ***argv) {
 | 
				
			|||||||
  ShmInitGeneric();
 | 
					  ShmInitGeneric();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CartesianCommunicator::~CartesianCommunicator(){
 | 
					CartesianCommunicator::~CartesianCommunicator()
 | 
				
			||||||
   if (communicator && !MPI::Is_finalized())
 | 
					{
 | 
				
			||||||
       MPI_Comm_free(&communicator);
 | 
					  if (communicator && !MPI::Is_finalized())
 | 
				
			||||||
 | 
					    MPI_Comm_free(&communicator);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user