Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in coefficient_common.i #181

Closed
goodman17c opened this issue Jun 16, 2023 · 2 comments
Closed

Typo in coefficient_common.i #181

goodman17c opened this issue Jun 16, 2023 · 2 comments

Comments

@goodman17c
Copy link
Contributor

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]
@goodman17c
Copy link
Contributor Author

#182 I submitted a PR to resolve this bug.

@sshiraiwa
Copy link
Member

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants