def assign(object_to, object_from): assert isinstance(object_to, Function) assert isinstance(object_from, Function) dolfin_assign(object_to, object_from) if hasattr(object_to, "block_function"): object_to.block_function().apply("from subfunctions", object_to.block_index())
def _assign(object_to: Function.Type(), object_from: Operator): dolfin_assign(object_to, function_from_ufl_operators(object_from))
def _assign(object_to: Function.Type(), object_from: Function.Type()): if object_from is not object_to: dolfin_assign(object_to, object_from)