ghex-org / GHEX

Generic exascale-ready library for halo-exchange operations on variety of grids/meshes
Other
8 stars 14 forks source link

python bindings for structured grids: improved make_communication_object function #162

Closed boeschf closed 7 months ago

boeschf commented 7 months ago

The communication object is wrapped in a type-erased shim class (structured case). Therefore, the make_communication_object function doesn't need the superfluous second argument anymore (this argument was only needed to inject the type and was confusing to use). Type injection happens at exchange time now, and subsequently, the communication_object template instance is retrieved from a std::variant.