Skip to content

Commit c942df7

Browse files
author
Daniel Ruprecht
committed
fixed script to generate boussinesq results and figure
1 parent 3aef563 commit c942df7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/boussinesq_2d_imex/plotgmrescounter.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
rcParams['figure.figsize'] = 5.0, 2.5
2626
fig = plt.figure()
2727

28-
plt.plot(xx[:,5], udirk[2,:,5], '--', color='r', markersize=fs-2, label='DIRK', dashes=(3,3))
29-
plt.plot(xx[:,5], uend[2,:,5], '-', color='b', label='SDC')
30-
plt.plot(xx[:,5], uimex[2,:,5], '--', color='g', markersize=fs-2, label='RK-IMEX', dashes=(3,3))
28+
plt.plot(xx[:,5], udirk[2,:,5], '--', color='g', markersize=fs-2, label='DIRK(4)', dashes=(3,3))
29+
plt.plot(xx[:,5], uend[2,:,5], '-', color='b', label='SDC(4)')
30+
plt.plot(xx[:,5], uimex[2,:,5], '--', color='r', markersize=fs-2, label='RK-IMEX(4)', dashes=(3,3))
3131
#plt.plot(xx[:,5], utrap[2,:,5], '--', color='k', markersize=fs-2, label='Trap', dashes=(3,3))
3232
plt.legend(loc='lower left', fontsize=fs, prop={'size':fs})
3333
plt.yticks(fontsize=fs)
3434
plt.xticks(fontsize=fs)
3535
plt.xlabel('x [km]', fontsize=fs, labelpad=0)
3636
plt.ylabel('Bouyancy', fontsize=fs, labelpad=1)
3737
#plt.show()
38-
filename = 'sdc-fwsw-boussinesq.pdf'
38+
filename = 'boussinesq.pdf'
3939
plt.savefig(filename, bbox_inches='tight')
4040
call(["pdfcrop", filename, filename])
4141

examples/boussinesq_2d_imex/rungmrescounter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
sparams = {}
4545
sparams['maxiter'] = 4
4646

47-
dirk_order = 4
47+
dirk_order = sparams['maxiter']
4848

4949
# setup parameters "in time"
5050
t0 = 0

0 commit comments

Comments
 (0)