rename compatibility.hh to ebos/femcpgridcompat.hh

the purpose of this seems to be to make 'Opm::CpGrid' usable with
'dune-fem'. This is quite a fringe case, and the code should better go
to opm-grid.
This commit is contained in:
Andreas Lauser 2018-04-10 10:00:56 +02:00
parent 1af2996b2a
commit ede2ef35af
2 changed files with 12 additions and 3 deletions

View File

@ -29,6 +29,7 @@
#include "eclbasevanguard.hh"
#include "ecltransmissibility.hh"
#include "femcpgridcompat.hh"
#include <opm/grid/CpGrid.hpp>
#include <opm/grid/cpgrid/GridHelpers.hpp>

View File

@ -20,8 +20,16 @@
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef EWOMS_DUNE_COMPATIBILITY_HH
#define EWOMS_DUNE_COMPATIBILITY_HH
/*!
* \file
*
* \brief This file ensures that ebos can be compiled in the presence of dune-fem
*
* It implements a few work-arounds for some incompatibilities with the Dune grid
* interface of CpGrid. A better way would be to make CpGrid conforming.
*/
#ifndef EWOMS_FEM_CPGRID_COMPAT_HH
#define EWOMS_FEM_CPGRID_COMPAT_HH
#if HAVE_DUNE_FEM
#include <dune/fem/gridpart/common/gridpart.hh>
@ -114,4 +122,4 @@ namespace Dune
#endif // #if HAVE_DUNE_FEM
#endif // #ifndef EWOMS_DUNE_COMPATIBILITY_HH
#endif // EWOMS_FEM_CPGRID_COMPAT_HH