[Dune-devel] On which side is DataHandleIF::size() called

Markus Blatt markus at dr-blatt.de
Wed Jul 26 09:18:00 CEST 2017


Hi,

when I first had to deal with parallelizing a DUNE grid I somehow
assumed that the size method is only allowed to be called on the
sending side. Why else what the scatter method have the size as an
additional parameter.

Somehow I was not sure whether that assumption really holds or every
grid developers thinks so. I just wrote a handle to be used for
loadbalancing a grid from a master process to all. As a precaution I
introduced an assertion in the size method that makes sure it is only
called on rank 0. For UGGrid this assertion just failed.

Is my assumption wrong, is it a bug in UG or am I missing something
fundamental here?

Cheers,

Markus
-- 
Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858




More information about the Dune-devel mailing list