Skip to content

Commit

Permalink
change solve to splu then solve
Browse files Browse the repository at this point in the history
  • Loading branch information
eepeterson committed Nov 28, 2023
1 parent 8b2698f commit 7dbd5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmc/deplete/cram.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __call__(self, A, n0, dt):
y = n0.copy()
ident = sp.eye(A.shape[0], format='csc')
for alpha, theta in zip(self.alpha, self.theta):
y += 2*np.real(alpha*sla.spsolve(A - theta*ident, y))
y += 2*np.real(alpha*sla.splu(A - theta*ident).solve(y))
return y * self.alpha0


Expand Down

0 comments on commit 7dbd5e5

Please sign in to comment.