Skip to content

Commit

Permalink
Numpy style not Google
Browse files Browse the repository at this point in the history
  • Loading branch information
mscroggs committed Aug 11, 2023
1 parent 8a2e86a commit b4e3b41
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions ufl/core/external_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,26 @@ class ExternalOperator(Operator):
def __init__(self, *operands, function_space, derivatives=None, coefficient=None, arguments=(), local_operands=()):
"""Initialise the external operator.
Args:
operands: operands on which the ExternalOperator acts.
function_space: the function space on which to build this function.
Alternatively, another Coefficient may be passed here and its function space
will be used.
derivatives: tuple specifiying the derivative multiindex.
coefficient: ufl.Coefficient associated to the ExternalOperator representing what is
produced by the operator
arguments: tuple composed of tuples whose first argument is a ufl.Argument or ufl.Expr
containing several ufl.Argument objects and whose second arguments is a boolean indicating
whether we take the action of the adjoint. We have arguments when the operator is a
GlobalExternalOperator.
local_operands: tuple specyfing the operands on which the operator acts locally
Parameters
----------
operands
Operands on which the ExternalOperator acts.
function_space
The function space on which to build this function.
Alternatively, another Coefficient may be passed here and its function space
will be used.
derivatives
Tuple specifiying the derivative multiindex.
coefficient
ufl.Coefficient associated to the ExternalOperator representing what is
produced by the operator
arguments
Tuple composed of tuples whose first argument is a ufl.Argument or ufl.Expr
containing several ufl.Argument objects and whose second arguments is a boolean indicating
whether we take the action of the adjoint. We have arguments when the operator is a
GlobalExternalOperator.
local_operands
Tuple specyfing the operands on which the operator acts locally
"""

ufl_operands = tuple(map(as_ufl, operands))
Expand Down

0 comments on commit b4e3b41

Please sign in to comment.