Skip to content

Commit d638602

Browse files
author
Daniel Ruprecht
committed
changed gmres tolerance for reference simulation
1 parent c9ab05d commit d638602

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/boussinesq_2d_imex/rungmrescounter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
pparams['order_upw'] = [5]
6464
pparams['gmres_maxiter'] = [500]
6565
pparams['gmres_restart'] = [10]
66-
pparams['gmres_tol'] = [1e-3]
66+
pparams['gmres_tol'] = [1e-5]
6767

6868
# This comes as read-in for the transfer operations
6969
tparams = {}
@@ -102,6 +102,9 @@
102102
for i in range(0,Nsteps):
103103
udirk = dirkp.timestep(udirk, dt)
104104

105+
Pref = P
106+
# For reference solution, increase GMRES tolerance
107+
Pref.gmes_tol = 1e-6
105108
dirkref = dirk(P, 4)
106109
uref = u0
107110
dt_ref = dt/10.0

0 commit comments

Comments
 (0)