Skip to content
Snippets Groups Projects
Commit 204ca1f3 authored by Timo Koch's avatar Timo Koch
Browse files

[parallelgrid][comm] Use more descriptive local variable name 'codim'

parent b0def3de
No related branches found
No related tags found
No related merge requests found
Pipeline #38993 passed
...@@ -83,9 +83,9 @@ namespace Dune ...@@ -83,9 +83,9 @@ namespace Dune
if( (info.partitionType() == sendType) && info.hasConnectivity() ) if( (info.partitionType() == sendType) && info.hasConnectivity() )
{ {
Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto i){ Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto codim){
if constexpr (codimAvailable<i>()) if constexpr (codimAvailable<codim>())
PackData<i>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count); PackData<codim>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count);
}); });
} }
} }
...@@ -100,9 +100,9 @@ namespace Dune ...@@ -100,9 +100,9 @@ namespace Dune
if( (info.partitionType() == recvType) && info.hasConnectivity() ) if( (info.partitionType() == recvType) && info.hasConnectivity() )
{ {
Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto i){ Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto codim){
if constexpr (codimAvailable<i>()) if constexpr (codimAvailable<codim>())
PackData<i>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count); PackData<codim>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count);
}); });
} }
} }
...@@ -138,9 +138,9 @@ namespace Dune ...@@ -138,9 +138,9 @@ namespace Dune
if( (info.partitionType() == recvType) && info.hasConnectivity() ) if( (info.partitionType() == recvType) && info.hasConnectivity() )
{ {
Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto i){ Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto codim){
if constexpr (codimAvailable<i>()) if constexpr (codimAvailable<codim>())
UnpackData<i>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count, sizes); UnpackData<codim>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count, sizes);
}); });
} }
} }
...@@ -156,9 +156,9 @@ namespace Dune ...@@ -156,9 +156,9 @@ namespace Dune
// if entity is not send type, don't do anything // if entity is not send type, don't do anything
if( (info.partitionType() == sendType) && info.hasConnectivity() ) if( (info.partitionType() == sendType) && info.hasConnectivity() )
{ {
Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto i){ Hybrid::forEach(std::make_index_sequence<dimension+1>{}, [&](auto codim){
if constexpr (codimAvailable<i>()) if constexpr (codimAvailable<codim>())
UnpackData<i>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count, sizes); UnpackData<codim>::apply(mpAccess(), rankManager_, dataHandle, buffer, entity, count, sizes);
}); });
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment