diff --git a/src/duneinterface/gitter_dune_pll_impl.cc b/src/duneinterface/gitter_dune_pll_impl.cc index fb3a2236eba04c62c9e7ebed1a95646945721020..c8e92a1c196dc1452a4a06c4683612a94a1d87c0 100644 --- a/src/duneinterface/gitter_dune_pll_impl.cc +++ b/src/duneinterface/gitter_dune_pll_impl.cc @@ -725,6 +725,31 @@ void GitterDunePll :: sendInteriorGhostElementData ( return ; } +// unpack all data from stream +void GitterDunePll :: unpackInteriorGhostElementData ( + ObjectStream & recvBuff, + IteratorSTI < hface_STI > * iter , + GatherScatterType & elementData ) +{ +#ifndef NDEBUG + const bool containsElements = elementData.contains(3,0); + assert( containsElements ); +#endif + + for (iter->first () ; ! iter->done () ; iter->next ()) + { + int hasdata = 0; + recvBuff.readObject(hasdata); + + if( hasdata ) + { + pair < ElementPllXIF_t *, int > p = iter->item ().accessPllX ().accessOuterPllX () ; + p.first->readDynamicState ( recvBuff , elementData); + } + } + return ; +} + // pack all data to stream void GitterDunePll :: sendInteriorGhostAllData ( ObjectStream & sendBuff, @@ -826,31 +851,6 @@ void GitterDunePll :: sendInteriorGhostAllData ( return ; } -// unpack all data from stream -void GitterDunePll :: unpackInteriorGhostElementData ( - ObjectStream & recvBuff, - IteratorSTI < hface_STI > * iter , - GatherScatterType & elementData ) -{ -#ifndef NDEBUG - const bool containsElements = elementData.contains(3,0); - assert( containsElements ); -#endif - - int hasdata = 0; - for (iter->first () ; ! iter->done () ; iter->next ()) - { - recvBuff.readObject(hasdata); - - if( hasdata ) - { - pair < ElementPllXIF_t *, int > p = iter->item ().accessPllX ().accessOuterPllX () ; - p.first->readDynamicState ( recvBuff , elementData); - } - } - return ; -} - // unpack all data from stream void GitterDunePll :: unpackInteriorGhostAllData ( ObjectStream & recvBuff,