'assign' functions for Functions should not use shared pointers

Issue #913 new
Prof Garth Wells created an issue

For some reason, FunctionAssigner methods and the free-functions assign require shared pointer arguments even when they don't hold a pointer to the object being passed. The interface design is misleading.

If a reference is not hold, a plain reference interface should be used.

Comments (4)

  1. Jan Blechta

    I guess you're right. But different mechanism would be needed for handling adaptive chain. (Maybe it can just be made much more explicit rather than letting DOLFIN hiding refined objects into existing ones.) I think @martinal also had a vague opinion how to refactor Hierarchical.

  2. Martin Sandve Alnæs

    @chris_richardson prototyped a hierarchy model separated from the objects in the hierarchy.

  3. Log in to comment