Skip to content

Commit

Permalink
Merge pull request #339 from blattms/prevent-unused-var-max_interface…
Browse files Browse the repository at this point in the history
…_entries

Prevent unused variable warning for Dune > 2.5.2
  • Loading branch information
atgeirr authored Jul 30, 2018
2 parents 8bff0b8 + 1cc7374 commit 51c7393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/CpGridData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,6 @@ void CpGridData::communicateCodim(DataHandle& data, CommunicationDirection dir,
return;
}
Entity2IndexDataHandle<DataHandle, codim> data_wrapper(*this, data);
std::size_t max_interface_entries = 0;

#if DUNE_VERSION_NEWER_REV(DUNE_GRID, 2, 5, 2)
VariableSizeCommunicator<> comm(ccobj_, interface);
Expand All @@ -529,6 +528,7 @@ void CpGridData::communicateCodim(DataHandle& data, CommunicationDirection dir,
// For this we calculate an upper barrier of the number of
// data items to be send manually and use it to construct a
// VariableSizeCommunicator with sufficient buffer.
std::size_t max_interface_entries = 0;
#ifndef NDEBUG
std::size_t max_items = 0;
#endif
Expand Down

0 comments on commit 51c7393

Please sign in to comment.