def wrapper(self, *args, **kwargs): FloatingType.__init__(self, *args, block_class=DirichletBCBlock, _ad_args=args, _ad_floating_active=True, **kwargs) init(self, *args, **kwargs)
def wrapper(self, *args, **kwargs): FloatingType.__init__(self, *args, block_class=kwargs.pop("block_class", None), _ad_floating_active=kwargs.pop("_ad_floating_active", False), _ad_args=kwargs.pop("_ad_args", None), output_block_class=kwargs.pop("output_block_class", None), _ad_output_args=kwargs.pop("_ad_output_args", None), _ad_outputs=kwargs.pop("_ad_outputs", None), **kwargs) init(self, *args, **kwargs)
def __init__(self, *args, **kwargs): super(DirichletBC, self).__init__(*args, **kwargs) FloatingType.__init__(self, *args, block_class=DirichletBCBlock, _ad_args=args, _ad_kwargs=kwargs, _ad_floating_active=True, annotate=kwargs.pop("annotate", True), **kwargs) # Call backend constructor after popped AD specific keyword args. backend.DirichletBC.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): annotate = annotate_tape(kwargs) self._ad_initialized = False self._ad_attributes_dict = {} self.ad_ignored_attributes = [] self.user_defined_derivatives = {} FloatingType.__init__(self, *args, block_class=ExpressionBlock, annotate=annotate, _ad_args=[self], _ad_floating_active=True, **kwargs) self._ad_initialized = True self._cached_fs = {}