diff --git a/openmc/deplete/cram.py b/openmc/deplete/cram.py index f5f80dfdc48..8e7bb819dcc 100644 --- a/openmc/deplete/cram.py +++ b/openmc/deplete/cram.py @@ -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