Skip to content

Commit

Permalink
Fix warning about unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkestene committed Sep 10, 2024
1 parent 4863550 commit edfc4a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/muscl/HydroInitFunctors3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ class InitGreshoVortexFunctor3D : public HydroBaseFunctor3D
#ifdef USE_MPI
const int i_mpi = params.myMpiPos[IX];
const int j_mpi = params.myMpiPos[IY];
const int k_mpi = params.myMpiPos[IZ];
// const int k_mpi = params.myMpiPos[IZ];
#else
const int i_mpi = 0;
const int j_mpi = 0;
Expand Down
2 changes: 1 addition & 1 deletion test/mpiBasic/testMpiTopology_2D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ main(int argc, char * argv[])
myRank = worldComm.getRank();
numTasks = worldComm.getNProc();

int mpierr = ::MPI_Get_processor_name(processor_name, &namelength);
[[maybe_unused]] int mpierr = ::MPI_Get_processor_name(processor_name, &namelength);

// print warning
if (myRank == 0)
Expand Down

0 comments on commit edfc4a2

Please sign in to comment.