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

section.calculate_warping_properties(solver_type='cgs') fails due to NameError #268

Closed
simo-11 opened this issue Feb 12, 2023 · 1 comment · Fixed by #277
Closed

section.calculate_warping_properties(solver_type='cgs') fails due to NameError #268

simo-11 opened this issue Feb 12, 2023 · 1 comment · Fixed by #277
Assignees
Labels
bug Something isn't working

Comments

@simo-11
Copy link
Contributor

simo-11 commented Feb 12, 2023

Describe the bug
Calculation of warping properties fails when using solver_type='cgs'

To Reproduce
section.calculate_warping_properties(solver_type='cgs')

sectionproperties\analysis\section.py", line 402, in ilu_decomp
(self.num_nodes, self.num_nodes), linalg.spilu(k).solve

NameError: name 'k' is not defined

Additional context
It seems that issue due partially made refactoring as assemble_torsion was modified to return only lagrangian version of k (k_lg) and no k at all.

Fixing

  • remove usage of k and k_precond in calculate_warping_properties will be provided
simo-11 added a commit to simo-11/section-properties that referenced this issue Feb 12, 2023
simo-11 added a commit to simo-11/section-properties that referenced this issue Feb 12, 2023
@robbievanleeuwen robbievanleeuwen self-assigned this Jun 11, 2023
@robbievanleeuwen robbievanleeuwen added the bug Something isn't working label Jun 11, 2023
@robbievanleeuwen
Copy link
Owner

robbievanleeuwen commented Jun 11, 2023

Thanks for picking this up @simo-11. I have resolved this for the upcoming release, see here.

@robbievanleeuwen robbievanleeuwen linked a pull request Jun 11, 2023 that will close this issue
@robbievanleeuwen robbievanleeuwen mentioned this issue Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants