Skip to content

Typo in coefficient_common.i #181

@goodman17c

Description

@goodman17c

This error occurs in the _ser build of PyMFEM within the coefficient_common.i file
In lines 67 and 69, there is a typo, where agrs is used rather than args resulting in python error when a sumcoefficient is used.

%pythonappend SumCoefficient::SumCoefficient %{
    if len(args) > 0 and isinstance(agrs[0], Coefficient):
          self.linkA = args[0]
    if len(args) > 1 and isinstance(agrs[1], Coefficient):
          self.linkB = args[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions