Skip to content

Commit 37defe4

Browse files
committed
fix
1 parent 460d69f commit 37defe4

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

examples/boussinesq_2d_imex/ProblemClass.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def solve_system(self,rhs,factor,u0,t):
104104

105105
b = rhs.values.flatten()
106106
cb = Callback()
107-
print(self.gmres_tol)
108107

109108
sol, info = LA.gmres( self.Id - factor*self.M, b, x0=u0.values.flatten(), tol=self.gmres_tol, restart=self.gmres_restart, maxiter=self.gmres_maxiter, callback=cb)
110109
# If this is a dummy call with factor==0.0, do not log because it should not be counted as a solver call

examples/boussinesq_2d_imex/rungmrescounter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
if __name__ == "__main__":
2727

2828
# set global logger (remove this if you do not want the output at all)
29-
logger = Log.setup_custom_logger('root')
29+
# logger = Log.setup_custom_logger('root')
3030

3131
num_procs = 1
3232

@@ -37,7 +37,7 @@
3737
swparams = {}
3838
swparams['collocation_class'] = collclass.CollGaussLegendre
3939
swparams['num_nodes'] = 3
40-
swparams['do_LU'] = True
40+
swparams['do_LU'] = False
4141

4242
sparams = {}
4343
sparams['maxiter'] = 4
@@ -52,8 +52,8 @@
5252

5353
# This comes as read-in for the problem class
5454
pparams = {}
55-
pparams['nvars'] = [(4,450,30)]
56-
#pparams['nvars'] = [(4,300,30)]
55+
# pparams['nvars'] = [(4,450,30)]
56+
pparams['nvars'] = [(4,300,30)]
5757
pparams['u_adv'] = 0.02
5858
pparams['c_s'] = 0.3
5959
pparams['Nfreq'] = 0.01
@@ -64,7 +64,7 @@
6464
pparams['gmres_maxiter'] = [500]
6565
pparams['gmres_restart'] = [10]
6666
pparams['gmres_tol_limit'] = [1e-3]
67-
pparams['gmres_tol_factor'] = [0.1]
67+
pparams['gmres_tol_factor'] = [0.01]
6868

6969
# This comes as read-in for the transfer operations
7070
tparams = {}

0 commit comments

Comments
 (0)