Skip to content

Commit

Permalink
Making cart_comm_size const in exchangeAMRDonors() and checkComm()
Browse files Browse the repository at this point in the history
  • Loading branch information
itopcuoglu committed Jan 9, 2025
1 parent 1ec9071 commit 7590ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/exchangeAMRDonors.C
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void tioga::exchangeAMRDonors()
// since the receiver side is unknown
//
pc_cart->getMap(&nsend_sav, &nrecv_sav, &sndMap, &rcvMap);
int cart_comm_size = pc_cart->get_comm_size();
const int cart_comm_size = pc_cart->get_comm_size();
sndMapAll = (int*)malloc(sizeof(int) * cart_comm_size);
rcvMapAll = (int*)malloc(sizeof(int) * cart_comm_size);
nsend = nrecv = cart_comm_size;
Expand Down Expand Up @@ -322,7 +322,7 @@ void tioga::checkComm()
int *sndMap, *rcvMap;
PACKET *sndPack, *rcvPack;

int cart_comm_size = pc_cart->get_comm_size();
const int cart_comm_size = pc_cart->get_comm_size();
nsend = cart_comm_size;
nrecv = cart_comm_size;
sndMap = (int*)malloc(sizeof(int) * nsend);
Expand Down

0 comments on commit 7590ce5

Please sign in to comment.