Skip to content

Commit 4053e47

Browse files
author
Daniel Ruprecht
committed
some comments added
1 parent 2133c42 commit 4053e47

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

examples/SWFW/plot_stability.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
pparams['u0'] = 1.0
1717
swparams = {}
1818
swparams['collocation_class'] = collclass.CollGaussLobatto
19-
swparams['num_nodes'] = 3
19+
swparams['num_nodes'] = 9
2020
K = 1
2121

22-
22+
#
23+
# ...this is functionality copied from test_imexsweeper. Ideally, it should be available in one place.
24+
#
2325
step = stepclass.step(params={})
2426
L = lvl.level(problem_class=swfw_scalar, problem_params=pparams, dtype_u=mesh, dtype_f=rhs_imex_mesh, sweeper_class=imex, sweeper_params=swparams, level_params={}, hook_class=hookclass.hooks, id="stability")
2527
step.register_level(L)

examples/SWFW/plot_stifflimit_specrad.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
plt.plot(nodes_v, specrad[1,:], 'bo-', markersize=fs-2, label=r'$\lambda_{\rm fast} = %2.0f i$' % problem.lambda_f[0].imag)
6565
plt.xlabel(r'Number of nodes $M$', fontsize=fs)
6666
plt.ylabel(r'Spectral radius $\sigma\left( \mathbf{E} \right)$', fontsize=fs, labelpad=2)
67+
#plt.title(r'$\Delta t \left| \lambda_{\rm slow} \right|$ = %2.1f' % step.status.dt*abs(problem.lambda_s[0]), fontsize=fs)
6768
plt.legend(loc='lower right', fontsize=fs, prop={'size':fs})
6869
plt.xlim([np.min(nodes_v), np.max(nodes_v)])
6970
plt.ylim([0, 1.0])

0 commit comments

Comments
 (0)