This is an intrusive test that selectively makes the private member
'dP' of class 'RelPermUpscaleHelper' publicly accessible by defining
the pre-processor symbol
UNITTEST_TRESPASS_PRIVATE_PROPERTY_DP
We compute the per-cell 'dP' values both with and without effective
gravity (g=0, g=10, g=9.80665) and compare to the expected values in
a 1-by-1-by-10 uniform discretisation of the unit cube.
Most of the contents of the test file is setup code that defines the
input deck, various options structures that abide by the conventions
of class 'RelPermUpscaleHelper', and compute expected pressure
drops.
Use the new opm material module
A practical fall-out from merging this change is that GCC 4.4 becomes
the minimum supported target platform for OPM-Porsol and its downstream
modules such as OPM-Upscaling.
The <have_boost_redef.hpp> header was introduced (commit
OPM/opm-core@82369f9) as a work-around for a particular interaction
in the Autotools-based setup of OPM-Core and the Dune core modules.
Notably, Dune's "Enable" trick for Boost failed on some older
Autoconf systems. Now that we're using CMake, however, that kluge
is no longer needed because OPM-Core always
#define HAVE_BOOST 1
i.e., as an explict true/false value.
Therefore, we need no longer include <have_boost_redef.hpp> . The
header will be removed at a later time.
- It seems like HAVE_CONFIG_H is not defined by the cmake build
system, so config.h was not included in the files which used it.
- use quotes instead of pointy brackets to include config.h. That
was inconsistent and I think that quotes better indicate the fact
that the config.h is a project-local file.
They should be moved to opm-core, though, and the classes
[Nonu|U]niformTableLinear classes removed from opm/porsol/common
(they are already in opm/core/utility.