Skip to content

Commit

Permalink
Merge pull request #462 from akva2/janitoring
Browse files Browse the repository at this point in the history
quell unused parameter warnings without MPI
  • Loading branch information
blattms authored Mar 19, 2020
2 parents f7df833 + fc7085c commit 1d0697f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion opm/grid/common/GridPartitioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,8 @@ void addOverlapLayer(const CpGrid& grid, int index, const CpGrid::Codim<0>::Enti
std::vector<std::tuple<int,int,char>>& exportList,
std::vector<std::tuple<int,int,char,int>>& importList,
const CollectiveCommunication<Dune::MPIHelper::MPICommunicator>& cc,
bool addCornerCells, const double* trans, int layers)
[[maybe_unused]] bool addCornerCells,
[[maybe_unused]] const double* trans, int layers)
{
#ifdef HAVE_MPI
using AttributeSet = Dune::cpgrid::CpGridData::AttributeSet;
Expand Down
8 changes: 5 additions & 3 deletions opm/grid/cpgrid/CpGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@ namespace Dune
{}



std::pair<bool, std::unordered_set<std::string> >
CpGrid::scatterGrid(EdgeWeightMethod method, bool ownersFirst, const std::vector<cpgrid::OpmWellType> * wells,
const double* transmissibilities, bool addCornerCells, int overlapLayers)
CpGrid::scatterGrid(EdgeWeightMethod method,
[[maybe_unused]] bool ownersFirst,
const std::vector<cpgrid::OpmWellType> * wells,
const double* transmissibilities,
[[maybe_unused]] bool addCornerCells, int overlapLayers)
{
// Silence any unused argument warnings that could occur with various configurations.
static_cast<void>(wells);
Expand Down

0 comments on commit 1d0697f

Please sign in to comment.