mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
change identity matrix format to csr in cram (#2771)
This commit is contained in:
parent
24e1c95161
commit
9830efaf2a
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ class IPFCramSolver(DepSystemSolver):
|
|||
"""
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue