Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
df3c2a20
Commit
df3c2a20
authored
May 31, 2022
by
Patrick Buchfink
Committed by
Stephan Rave
Jun 10, 2022
Browse files
Added nontrivial h to test of QuadraticHamiltonianSystem
parent
d1bf1be7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymortests/model.py
View file @
df3c2a20
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment