mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-07 23:13:01 -06:00
Disable warning for using DUNE's FieldVector::size
In DUNE 2.2 FieldVector::size changed from being a member to being a method. A compatibility warning is issued if you include the relevant headers. This warning can be silenced for DUNE modules by using passing the option --enable-fieldvector-size-is-method to ./configure. This patch effectively does the same, but through a macro definition.
This commit is contained in:
parent
271b0d800c
commit
ab21d44c9a
@ -26,6 +26,10 @@
|
||||
|
||||
#include <opm/core/utility/have_boost_redef.hpp>
|
||||
|
||||
// Silence compatibility warning from DUNE headers since we don't use
|
||||
// the deprecated member anyway (in this compilation unit)
|
||||
#define DUNE_COMMON_FIELDVECTOR_SIZE_IS_METHOD 1
|
||||
|
||||
// TODO: clean up includes.
|
||||
#include <dune/common/deprecated.hh>
|
||||
#include <dune/istl/bvector.hh>
|
||||
|
Loading…
Reference in New Issue
Block a user