[Dune] [#983] UG sometimes passes EntityPointers to DataHandle instead of Entities (Attachment added)

Dune flyspray at dune-project.org
Wed Nov 30 18:53:43 CET 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Steffen Müthing (smuething) 

Attached to Project - Dune
Summary - UG sometimes passes EntityPointers to DataHandle instead of Entities
Task Type - Bug Report
Category - UG
Status - Unconfirmed
Assigned To - 
Operating System - Unspecified / All
Severity - Medium
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - In the UGMessageBuffer implementations for the new codim 1 communication support in UGGrid, face entities are generated by calling element.subEntity() and passed on to the DataHandle to determine the size of the communication buffer. Unfortunately, subEntity() does not (as the name suggests) return an entity, but an EntityPointer, which needs to be dereferenced before passing it to the DataHandle, as that does in turn expect an Entity reference.

The attached patch fixes the problem.

PS: I hadn't yet thought about that counter-intuitive behavior of subEntity(), but I think this problem makes another good argument for ref-counted, copyable Entity handle objects.

One or more files have been attached.

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=983

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the Dune mailing list