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 97edf14 commit f44847d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymordemos/elliptic2.py
Expand Up @@ -106,7 +106,7 @@ def elliptic2_demo(args):
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])
h1_0_norm_squared = U[-1].norm(m.products['h1_0_semi'])[0]
print('H^1_0 semi norm of the last snapshot: ', np.sqrt(h1_0_norm_squared)[0][0])
m.visualize(U, title='Solution for mu in [0.1, 1]')

Expand Down

0 comments on commit f44847d

Please sign in to comment.