Add generation and use of warning-suppressing headers.
Avoid warning by not storing MPIHelper instance reference.
The reference phase is always the oil phase. Removed explicit warning.
Remove unused variable.
Use non-deprecated leafGridView() method.
Fix bugs relating to misused face_cells variable.
Export HAVE_DUNE_ISTL for other modules.

This is e.g. needed in the parallel version of autodiff to
test whether ISTL is there.
Search for MPI support

The build system depends on knowing if MPI is available.  Explicitly
search for MPI to honour that requirement.  Don't rely on ISTL's
transitive searching for the same.
add option to quell dune(-istl) warnings
Added more warnings to suppression list, sorted list.
Change option name and generated header names.
add support for the UG grid library

recently UG has become free software (yay!), so we can now support it
with a good conscience. The CMake module is based on the "UseUG.cmake"
module of dune-grid but it is quite a bit simpler and actually
works. (I cannot see how UseUG.cmake can work without ever including
the ug-config*.cmake files...)

the UG source code is available here:

https://github.com/ugfem/ug
Fix option name to match name in use in conditional.

Also add a useful doc string.
do not add the "-Wl,--as-needed" linker flag in FindSuiteSparse.cmake

because if umfpack is fully linked but some other library is
underlinked, it causes the build to fail. This flag is better dealt
with in the "UseOnlyNeeded.cmake" module...
make the "-Wl,--as-needed" flag optional

as there is not much harm done if it is not used but it may cause the
build to fail if it is present (read: it causes _my_ build to fail),
it defaults to OFF.
Make updateWellControls() update well variables, too.

Formerly only the control was changed. Now both well state and primary variables
will be modified to match control targets that were switched to (bhp or rates).
Merge pull request #123 from bska/sync-build

Synchronise build system with OPM-Core
Merge branch 'master' into suppress-warnings

Conflicts:
	cmake/Modules/UseWarnings.cmake
Use #if guards to handle different dune versions.
Add missing #include.

While version.hh is included transitively via other dune includes,
this may change. So for future-proofing we include it here.