Skip to content

Commit

Permalink
Fix cut paste typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ericgig committed May 16, 2024
1 parent da41d61 commit 771226f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qutip/solver/solver_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ def _prepare_state(self, state):
norm = state.tr()
else:
norm = state.norm()
self._normalized = np.abs( - 1) <= settings.core["atol"]
# Use the settings atol instead of the solver one since the second
# refer to the ODE tolerance and some integrator do not use it.
self._normalized = np.abs(norm - 1) <= settings.core["atol"]
if self.rhs.dims[1] == state.dims:
return stack_columns(state.data)
return state.data
Expand Down

0 comments on commit 771226f

Please sign in to comment.