multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

Add duplication mapper #47

Closed LourensVeen closed 1 year ago

LourensVeen commented 4 years ago

There's one in the test suite, but it needs to be promoted to a separate program, and it needs to detect vector ports and send a copy of the input on each slot.

LourensVeen commented 2 years ago

It might be even better to allow connecting multiple conduits to an output port, then you don't need a duplication mapper. That would require either multiple outboxes and multiple copies of the message, or some kind of shared pointer construction with thread-safe reference counting.