Skip to content
Snippets Groups Projects
Commit 23d6ef00 authored by patavirt's avatar patavirt
Browse files

solver: tweak for performance

parent 41806c7b
No related branches found
No related tags found
No related merge requests found
......@@ -188,7 +188,7 @@ class Solver:
skip_precond = 0
if solver is None:
solver = "lgmres"
solver = "gcrotmk"
if A_size > 40000:
_log_solve.debug(
......@@ -561,8 +561,13 @@ class Solver:
self._t_solve_min = np.inf
self._M = None
self._Phi[...] = 0
prev_omega = None
for j in js:
if prev_omega is not None and prev_omega < 0 and omega[j] > 0:
self._M = None
self._Phi[...] = 0
prev_omega = omega[j]
self.solve(omega=omega[j], **kw)
Phi_prev = self._Phi.copy()
Phi[j] = self._Phi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment