Commit a751323f authored by Oliver Sander's avatar Oliver Sander

Merge branch 'fix-seq-uggrid-warning' into 'master'

Define DataHandle type only when ModelP is set

See merge request !255
parents 2e965c69 a1ea106d
Pipeline #6230 passed with stage
in 51 minutes and 39 seconds
......@@ -205,9 +205,9 @@ namespace Dune
template< class DataHandleImp, class DataType >
void communicate ( CommDataHandleIF< DataHandleImp, DataType > &dataHandle, InterfaceType iftype, CommunicationDirection dir ) const
{
#ifdef ModelP
typedef CommDataHandleIF< DataHandleImp, DataType > DataHandle;
#ifdef ModelP
for (int curCodim = 0; curCodim <= Grid::dimension; ++curCodim) {
if (!dataHandle.contains(Grid::dimension, curCodim))
continue;
......@@ -404,9 +404,9 @@ namespace Dune
template< class DataHandleImp, class DataType >
void communicate ( CommDataHandleIF< DataHandleImp, DataType > &dataHandle, InterfaceType iftype, CommunicationDirection dir ) const
{
#ifdef ModelP
typedef CommDataHandleIF< DataHandleImp, DataType > DataHandle;
#ifdef ModelP
for (int curCodim = 0; curCodim <= Grid::dimension; ++curCodim) {
if (!dataHandle.contains(Grid::dimension, curCodim))
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment