Commit 3725ef05 authored by René Fritze's avatar René Fritze
Browse files

[demos] better error for wrong problem number in nn_instationary

parent 90d9eb50
......@@ -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
assert False
raise ValueError(f'Unknown problem number {problem_number}')
return fom, plot_function
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