fixed: add missing includes

and mark parameter maybe_unused
This commit is contained in:
Arne Morten Kvarving 2022-10-06 13:16:21 +02:00
parent 5f101a3d58
commit d08ab74630

View File

@ -28,6 +28,10 @@
* \author Markus Blatt, OPM-OP AS * \author Markus Blatt, OPM-OP AS
*/ */
#include <dune/grid/common/datahandleif.hh>
#include <cstddef>
namespace Opm namespace Opm
{ {
@ -86,7 +90,8 @@ public:
} }
template<class BufferType, class EntityType> template<class BufferType, class EntityType>
void scatter(BufferType& buffer, const EntityType& e, std::size_t n) void scatter(BufferType& buffer, const EntityType& e,
[[maybe_unused]] std::size_t n)
{ {
assert(n == data_.size()); assert(n == data_.size());
for(auto& vec: data_) for(auto& vec: data_)