Skip to content

Bug located in vec and mat functions #114

@clatapie

Description

@clatapie

🔍 Before submitting the issue

  • I have searched among the existing issues
  • I am using a Python virtual environment

🐞 Description of the bug

In the function definitions of vec and mat, the variable init is initialized with zeros. This is causing errors. The default value needs to be None.

📝 Steps to reproduce

mapdl.vec("u", "Z", "LINK", Q, 2)
u = mm.vec(name="u", asarray=True)
print(u)
>>> array([0., 0.])

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

📦 Installed packages

-

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions