mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
[cleanup] Removes unnecessary if clauses for unsupported DUNE versions.
We are targetting DUNE 2.4.* and 2.5.* currently. Therefore this commit removes the if checks for lower versions to cleanup the code.
This commit is contained in:
@@ -837,13 +837,8 @@ namespace Opm
|
||||
continue; // intersection is on the domain boundary
|
||||
}
|
||||
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
unsigned c1 = globalElemMapper.index(is.inside());
|
||||
unsigned c2 = globalElemMapper.index(is.outside());
|
||||
#else
|
||||
unsigned c1 = globalElemMapper.map(is.inside());
|
||||
unsigned c2 = globalElemMapper.map(is.outside());
|
||||
#endif
|
||||
|
||||
if (c1 > c2)
|
||||
{
|
||||
@@ -909,13 +904,8 @@ namespace Opm
|
||||
continue; // intersection is on the domain boundary
|
||||
}
|
||||
|
||||
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2,4)
|
||||
unsigned c1 = globalElemMapper.index(is.inside());
|
||||
unsigned c2 = globalElemMapper.index(is.outside());
|
||||
#else
|
||||
unsigned c1 = globalElemMapper.map(is.inside());
|
||||
unsigned c2 = globalElemMapper.map(is.outside());
|
||||
#endif
|
||||
|
||||
if (c1 > c2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user