From e9a07e73c7579462e8a8353d55d93877a466510c Mon Sep 17 00:00:00 2001 From: yasunari89 Date: Sun, 27 Sep 2020 23:11:53 +0900 Subject: [PATCH] fix function and typo for 2d --- example2d.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example2d.py b/example2d.py index 937c5c4..ecbfbef 100644 --- a/example2d.py +++ b/example2d.py @@ -144,7 +144,7 @@ dy = ly / ny t0 = time.time() -u, v = isoturb.generate_isotropic_turbulence(lx, ly, nx, ny, nmodes, wn1, whichspec) +u, v = isoturb.generate_isotropic_turbulence_2d(lx, ly, nx, ny, nmodes, wn1, whichspec) t1 = time.time() elapsed_time = t1 - t0 print('it took me ', elapsed_time, 's to generate the isotropic turbulence.') @@ -260,9 +260,9 @@ plt.grid() # plt.gcf().tight_layout() if nx == ny: - plt.title(str(nx) + '$^3$') + plt.title(str(nx) + '$^2$') else: - plt.title(str(nx) + 'x' + str(ny) + 'x' + str(nz)) + plt.title(str(nx) + 'x' + str(ny)) plt.legend(handles=[l1, l2], loc=1) # fig.savefig('tkespec_' + filespec + '_' + str(N) + '.pdf') fig.savefig('tkespec_' + fileappend + '.pdf')