Skip to content

Commit 7444d10

Browse files
authored
1 parent fd74c25 commit 7444d10

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

sectionproperties/analysis/section.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,6 @@ def warping_analysis(progress=None):
397397

398398
# ILU decomposition of stiffness matrices
399399
def ilu_decomp(progress=None, task=None):
400-
# ILU decomposition on regular stiffness matrix
401-
k_precond = linalg.LinearOperator(
402-
(self.num_nodes, self.num_nodes), linalg.spilu(k).solve
403-
)
404-
405-
if progress is not None:
406-
progress.update(task, advance=1)
407-
408400
# ILU decomposition on Lagrangian stiffness matrix
409401
k_lg_precond = linalg.LinearOperator(
410402
(self.num_nodes + 1, self.num_nodes + 1), linalg.spilu(k_lg).solve
@@ -413,7 +405,7 @@ def ilu_decomp(progress=None, task=None):
413405
if progress is not None:
414406
progress.update(task, advance=1)
415407

416-
return (k_precond, k_lg_precond)
408+
return k_lg_precond
417409

418410
# if the cgs method is used, perform ILU decomposition
419411
if solver_type == "cgs":
@@ -422,14 +414,14 @@ def ilu_decomp(progress=None, task=None):
422414
description="[red]Performing ILU decomposition",
423415
total=2,
424416
)
425-
(k_precond, k_lg_precond) = ilu_decomp(progress=progress, task=task)
417+
k_lg_precond = ilu_decomp(progress=progress, task=task)
426418

427419
progress.update(
428420
task,
429421
description="[green]:white_check_mark: ILU decomposition complete",
430422
)
431423
else:
432-
(k_precond, k_lg_precond) = ilu_decomp()
424+
k_lg_precond = ilu_decomp()
433425

434426
# solve for warping function
435427
def solve_warping():

0 commit comments

Comments
 (0)