Skip to content

Commit

Permalink
Fix warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel committed Jul 25, 2024
1 parent 6254c4c commit 12b48e6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/MeshBlock.C
Original file line number Diff line number Diff line change
Expand Up @@ -1119,15 +1119,15 @@ void MeshBlock::writeBCnodes(char nodetype2tag, int bodyid)
char filename[100];
FILE* fp;

int sbuffer = 1;
const int sbuffer = 1;
int rbuffer;
int i, ii, i3;

// set node type data
int nbc = (nodetype2tag == WALLNODETYPE) ? nwbc : nobc;
const int nbc = (nodetype2tag == WALLNODETYPE) ? nwbc : nobc;
int* bcnode = (nodetype2tag == WALLNODETYPE) ? wbcnode : obcnode;

int allnbc = 0;
const int allnbc = 0;
MPI_Reduce(&nbc, &allnbc, 1, MPI_INT, MPI_SUM, 0, blockcomm);

Check failure on line 1131 in src/MeshBlock.C

View workflow job for this annotation

GitHub Actions / CPU (ubuntu-latest, Release)

invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]

Check failure on line 1131 in src/MeshBlock.C

View workflow job for this annotation

GitHub Actions / CPU (macos-latest, Release)

no matching function for call to 'MPI_Reduce'

Check failure on line 1131 in src/MeshBlock.C

View workflow job for this annotation

GitHub Actions / CPU (macos-latest, Debug)

no matching function for call to 'MPI_Reduce'

static int step = 0;
Expand Down Expand Up @@ -1947,9 +1947,7 @@ MeshBlock::~MeshBlock()
if (nodeRes != nullptr) TIOGA_FREE(nodeRes);
if (elementBbox != nullptr) TIOGA_FREE(elementBbox);
if (elementList != nullptr) TIOGA_FREE(elementList);
if (adt != nullptr) {
delete[] adt;
}
delete[] adt;
if (donorList != nullptr) {
for (i = 0; i < nnodes; i++) {
deallocateLinkList(donorList[i]);
Expand Down

0 comments on commit 12b48e6

Please sign in to comment.