Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pyMOR
pymor
Commits
3725ef05
Commit
3725ef05
authored
Jan 19, 2023
by
René Fritze
Browse files
[demos] better error for wrong problem number in nn_instationary
parent
90d9eb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pymordemos/neural_networks_instationary.py
View file @
3725ef05
...
...
@@ -178,7 +178,7 @@ def create_fom(problem_number, grid_intervals, time_steps):
fom
,
_
=
discretize_instationary_fv
(
problem
,
diameter
=
1.
/
grid_intervals
,
nt
=
time_steps
)
plot_function
=
fom
.
visualize
else
:
assert
False
raise
ValueError
(
f
'Unknown problem number
{
problem_number
}
'
)
return
fom
,
plot_function
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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