Commit 706e7042 authored by Patrick Buchfink's avatar Patrick Buchfink Committed by Stephan Rave
Browse files

Implemented correct logic for testing time_stepper and nt

parent be122c1e
Pipeline #145041 passed with stages
in 35 minutes and 54 seconds
......@@ -76,7 +76,7 @@ class QuadraticHamiltonianModel(InstationaryModel):
and H_op.range.dim % 2 == 0
# interface to use ImplicitMidpointTimeStepper via parameter nt
if (time_stepper is None) != (nt is None):
if (time_stepper is None) == (nt is None):
raise ValueError('Either specify time_stepper or nt (not both)')
if time_stepper is None:
time_stepper = ImplicitMidpointTimeStepper(nt)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment