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

Update src/pymor/models/

Update checking of nt and time_stepper
Co-authored-by: default avatarStephan Rave <>
parent c92d7fcf
......@@ -78,6 +78,8 @@ class QuadraticHamiltonianModel(InstationaryModel):
# interface to use ImplicitMidpointTimeStepper via parameter nt
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)
if isinstance(H_op.range, NumpyVectorSpace):
# make H_op compatible with blocked phase_space
Markdown is supported
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