Skip to content

Commit

Permalink
Making comm_size const in getCartReceptors()
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu committed Jan 6, 2025
1 parent 3201bbf commit 1ec9071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getCartReceptors.C
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void MeshBlock::getCartReceptors(CartGrid* cg, parallelComm* pc)
//
// limit case we communicate to everybody
//
int comm_size = pc->get_comm_size();
const int comm_size = pc->get_comm_size();
int* pmap = (int*)malloc(sizeof(int) * comm_size);
for (int i = 0; i < comm_size; i++) {
pmap[i] = 0;
Expand Down

0 comments on commit 1ec9071

Please sign in to comment.