@@ -397,14 +397,6 @@ def warping_analysis(progress=None):
397
397
398
398
# ILU decomposition of stiffness matrices
399
399
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
-
408
400
# ILU decomposition on Lagrangian stiffness matrix
409
401
k_lg_precond = linalg .LinearOperator (
410
402
(self .num_nodes + 1 , self .num_nodes + 1 ), linalg .spilu (k_lg ).solve
@@ -413,7 +405,7 @@ def ilu_decomp(progress=None, task=None):
413
405
if progress is not None :
414
406
progress .update (task , advance = 1 )
415
407
416
- return ( k_precond , k_lg_precond )
408
+ return k_lg_precond
417
409
418
410
# if the cgs method is used, perform ILU decomposition
419
411
if solver_type == "cgs" :
@@ -422,14 +414,14 @@ def ilu_decomp(progress=None, task=None):
422
414
description = "[red]Performing ILU decomposition" ,
423
415
total = 2 ,
424
416
)
425
- ( k_precond , k_lg_precond ) = ilu_decomp (progress = progress , task = task )
417
+ k_lg_precond = ilu_decomp (progress = progress , task = task )
426
418
427
419
progress .update (
428
420
task ,
429
421
description = "[green]:white_check_mark: ILU decomposition complete" ,
430
422
)
431
423
else :
432
- ( k_precond , k_lg_precond ) = ilu_decomp ()
424
+ k_lg_precond = ilu_decomp ()
433
425
434
426
# solve for warping function
435
427
def solve_warping ():
0 commit comments