From 38b581fdd00b89f076383a4b4d1a4c3f31f05dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?= <robertk@mathematik.uni-stuttgart.de> Date: Mon, 5 Feb 2007 14:29:13 +0000 Subject: [PATCH] minor change. git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@785 0d966ed9-3843-0410-af09-ebfb50bd7c74 --- src/duneinterface/gitter_dune_pll_impl.cc | 50 +++++++++++------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/duneinterface/gitter_dune_pll_impl.cc b/src/duneinterface/gitter_dune_pll_impl.cc index fb3a2236e..c8e92a1c1 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, -- GitLab