Commit a1ea106d authored by Oliver Sander's avatar Oliver Sander

Define DataHandle type only when ModelP is set

Otherwise it is unused, and will trigger a compiler warning.
parent 2e965c69
Pipeline #6228 passed with stage
in 46 minutes and 6 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