Skip to content

Commit

Permalink
change identity matrix format to csr in cram (openmc-dev#2771)
Browse files Browse the repository at this point in the history
  • Loading branch information
eepeterson authored and church89 committed Jul 18, 2024
1 parent 3524bbf commit f196aca
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 @@ -77,7 +77,7 @@ def __call__(self, A, n0, dt):
"""
A = sp.csr_matrix(A * dt, dtype=np.float64)
y = n0.copy()
ident = sp.eye(A.shape[0])
ident = sp.eye(A.shape[0], format='csr')
for alpha, theta in zip(self.alpha, self.theta):
y += 2*np.real(alpha*sla.spsolve(A - theta*ident, y))
return y * self.alpha0
Expand Down

0 comments on commit f196aca

Please sign in to comment.