Commit 04ab2d9e 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

(cherry picked from commit a751323f)

a1ea106d Define DataHandle type only when ModelP is set
parent 083f559d
Pipeline #6231 passed with stage
in 49 minutes and 38 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