11
2- function Jutul. update_preconditioner! (prec:: BattMo.BatteryGeneralPreconditioner , lsys, context, model, storage, recorder, executor)
2+ function Jutul. update_preconditioner! (prec:: BattMo.BatteryGeneralPreconditioner , lsys:: Jutul.JutulLinearSystem , context, model, storage, recorder, executor)
33 # Solve all Phi with AMG
44 # Solve the elyte C with another AMG
55 # Let the rest be (?)
@@ -71,7 +71,7 @@ function Jutul.update_preconditioner!(prec::BattMo.BatteryGeneralPreconditioner,
7171end
7272Jutul. operator_nrows (p:: BattMo.BatteryGeneralPreconditioner ) = p. data. n
7373
74- function Jutul. apply! (x, prec:: BattMo.BatteryGeneralPreconditioner , r, arg ... )
74+ function Jutul. apply! (x, prec:: BattMo.BatteryGeneralPreconditioner , r)
7575 A = prec. data. A
7676 x .= 0
7777 dx = prec. data. allvars. x# copy(x) # maybe move to storage
@@ -96,7 +96,7 @@ function Jutul.apply!(x, prec::BattMo.BatteryGeneralPreconditioner, r, arg...)
9696 println (" Models " , varprecond. models)
9797 # println(precond)
9898 end
99- apply_local_preconditioner! (dx, precond, r_local, var, arg ... )
99+ apply_local_preconditioner! (dx, precond, r_local, var)
100100 # println(dx)
101101 x .+ = dx
102102 if prec. params[" method" ] == " seq"
@@ -122,7 +122,7 @@ function Jutul.apply!(x, prec::BattMo.BatteryGeneralPreconditioner, r, arg...)
122122 # error()
123123 if ! isnothing (prec. g_varprecond)
124124 varprec = prec. g_varprecond
125- Jutul. apply! (dx, varprec. precond, r_local, arg ... )
125+ Jutul. apply! (dx, varprec. precond, r_local)
126126 x .+ = dx
127127 Jutul. mul! (r_local, A, dx, - 1 , true )
128128 dx .= 0.0
@@ -199,12 +199,12 @@ function update_local_preconditioner!(varprec, A, r, ind_eq, ind_var, executor)
199199 # NB ok??
200200 # Jutul.update_preconditioner!(prec, A_s, view(r, ix), DefaultContext(), executor)
201201end
202- function apply_local_preconditioner! (x, prec, r, S, arg ... )
202+ function apply_local_preconditioner! (x, prec, r, S)
203203 r_i = S. r
204204 x_i = S. x
205205 x_i .= 0.0
206206 ix = S. ix
207207 @. r_i = r[ix]
208- apply! (x_i, prec, r_i,arg ... )
208+ apply! (x_i, prec, r_i)
209209 @. x[ix] = x_i
210210end
0 commit comments