示例#1
0
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())
示例#2
0
def _assign(object_to: Function.Type(), object_from: Operator):
    dolfin_assign(object_to, function_from_ufl_operators(object_from))
示例#3
0
def _assign(object_to: Function.Type(), object_from: Function.Type()):
    if object_from is not object_to:
        dolfin_assign(object_to, object_from)