mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Make sure IPFCramSolver.__call__ doesn't modify n0
This commit is contained in:
parent
506d3e610d
commit
36e316bb2c
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class IPFCramSolver(DepSystemSolver):
|
|||
|
||||
"""
|
||||
A = sp.csr_matrix(A * dt, dtype=np.float64)
|
||||
y = np.asarray(n0, dtype=np.float64)
|
||||
y = n0.copy()
|
||||
ident = sp.eye(A.shape[0])
|
||||
for alpha, theta in zip(self.alpha, self.theta):
|
||||
y += 2*np.real(alpha*sla.spsolve(A - theta*ident, y))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue