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

Added nontrivial h to test of QuadraticHamiltonianSystem

parent d1bf1be7
......@@ -14,6 +14,7 @@ from pymor.core.pickle import dumps, loads
from pymor.models.symplectic import QuadraticHamiltonianModel
from pymor.operators.block import BlockDiagonalOperator
from pymor.operators.constructions import IdentityOperator
from pymor.vectorarrays.block import BlockVectorArray
from pymor.vectorarrays.numpy import NumpyVectorSpace
from pymortests.base import runmodule
from pymortests.pickling import assert_picklable, assert_picklable_without_dumps_function
......@@ -68,6 +69,7 @@ def test_quadratic_hamiltonian_model(block_phase_space):
3,
H_op.source.ones(),
H_op,
h=H_op.range.from_numpy(np.array([1, 0])),
time_stepper=ImplicitMidpointTimeStepper(3),
name='test_mass_spring_model'
)
......
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