Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/LoadBalance/LB_Refine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void LB_Refine( const int FaLv )
bool Send = SwitchFinerLevelsToWaveScheme;
bool Recv;

MPI_Allreduce( &Send, &Recv, 1, MPI_C_BOOL, MPI_LOR, MPI_COMM_WORLD );
MPI_Allreduce( &Send, &Recv, 1, MPI_CXX_BOOL, MPI_LOR, MPI_COMM_WORLD );

SwitchFinerLevelsToWaveScheme = Recv;
# endif
Expand Down
2 changes: 1 addition & 1 deletion src/MPI/MPI_Alltoallv_GAMER.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void MPI_Alltoallv_GAMER( T *SendBuf, long *Send_NCount, long *Send_NDisp, MPI_D

bool use_mpi_gamer_flag = false;
if ( ( Send_NDisp[MPI_NRank-1] > __INT_MAX__ ) || ( Recv_NDisp[MPI_NRank-1] > __INT_MAX__ ) ) use_mpi_gamer_flag = true;
MPI_Allreduce( MPI_IN_PLACE, &use_mpi_gamer_flag , 1, MPI_C_BOOL, MPI_LOR, MPI_COMM_WORLD );
MPI_Allreduce( MPI_IN_PLACE, &use_mpi_gamer_flag , 1, MPI_CXX_BOOL, MPI_LOR, MPI_COMM_WORLD );

if ( use_mpi_gamer_flag )
{
Expand Down
2 changes: 1 addition & 1 deletion src/Model_ELBDM/ELBDM_GetTimeStep_Gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ real GetMaxPot( const int lv )
bool AnyCell_AllRank;

MPI_Allreduce( &MaxPot, &MaxPot_AllRank, 1, MPI_GAMER_REAL, MPI_MAX, MPI_COMM_WORLD );
MPI_Reduce( &AnyCell, &AnyCell_AllRank, 1, MPI_C_BOOL, MPI_LOR, 0, MPI_COMM_WORLD );
MPI_Reduce( &AnyCell, &AnyCell_AllRank, 1, MPI_CXX_BOOL, MPI_LOR, 0, MPI_COMM_WORLD );


// check
Expand Down
2 changes: 1 addition & 1 deletion src/Refine/Sync_UseWaveFlag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void Sync_UseWaveFlag( const int lv )
bool recv;
bool send = amr->use_wave_flag[lv];

MPI_Allreduce( &send, &recv, 1, MPI_C_BOOL, MPI_LOR, MPI_COMM_WORLD );
MPI_Allreduce( &send, &recv, 1, MPI_CXX_BOOL, MPI_LOR, MPI_COMM_WORLD );

amr->use_wave_flag[lv] = recv;

Expand Down
Loading