Skip to content

Commit

Permalink
Update src/pymordemos/elliptic2.py
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Rave <stephanrave@uni-muenster.de>
  • Loading branch information
Tim Keil and sdrave committed Aug 18, 2020
1 parent bc32ab6 commit 97edf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymordemos/elliptic2.py
Expand Up @@ -103,7 +103,7 @@ def elliptic2_demo(args):
U.append(m.solve(mu))
if mu_bar is not None:
# use the given energy product
energy_norm_squared = m.products['energy'].apply2(U[-1], U[-1])
energy_norm_squared = U[-1].norm(m.products['energy'])[0]
print('Energy norm of the last snapshot: ', np.sqrt(energy_norm_squared)[0][0])
if not args['--fv']:
h1_0_norm_squared = m.products['h1_0_semi'].apply2(U[-1], U[-1])
Expand Down

0 comments on commit 97edf14

Please sign in to comment.