Skip to content

Commit

Permalink
Moving LSSOLVE
Browse files Browse the repository at this point in the history
  • Loading branch information
germa89 committed Nov 2, 2023
1 parent 44f9ba7 commit b42b0ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ def lssolve(self, lsmin="", lsmax="", lsinc="", **kwargs):
>>> mapdl.lssolve(1, 2)
"""
with self.non_interactive:
self.run(f"LSSOLVE,{lsmin},{lsmax},{lsinc}", **kwargs)
return self.last_response
return self.run(f"LSSOLVE,{lsmin},{lsmax},{lsinc}", **kwargs)

def lswrite(self, lsnum="", **kwargs):
"""Writes load and load step option data to a file.
Expand Down
7 changes: 7 additions & 0 deletions src/ansys/mapdl/core/mapdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5265,3 +5265,10 @@ def com(self, comment="", **kwargs):
print(command)

return super().com(comment=command, **kwargs)

@wraps(Command.lssolve)
def lssolve(self, lsmin="", lsmax="", lsinc="", **kwargs):
"""Wraps LSSOLVE"""
with self.non_interactive:
super().lssolve(lsmin=lsmin, lsmax=lsmax, lsinc=lsinc, **kwargs)
return self.last_response

0 comments on commit b42b0ab

Please sign in to comment.