Skip to content

Commit 59a9e5f

Browse files
committed
Merge pull request #72 from danielru/fix/playground_bouss
Fix playground in Boussinesq example
2 parents 5554f94 + 2efa8ac commit 59a9e5f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

examples/boussinesq_2d_imex/playground.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# set global logger (remove this if you do not want the output at all)
2525
logger = Log.setup_custom_logger('root')
2626

27-
num_procs = 8
27+
num_procs = 1
2828

2929
# This comes as read-in for the level class
3030
lparams = {}
@@ -33,7 +33,7 @@
3333
swparams = {}
3434
swparams['collocation_class'] = collclass.CollGaussLobatto
3535
swparams['num_nodes'] = 3
36-
swparams['do_LU'] = True
36+
swparams['do_LU'] = False
3737

3838
sparams = {}
3939
sparams['maxiter'] = 12
@@ -48,17 +48,18 @@
4848

4949
# This comes as read-in for the problem class
5050
pparams = {}
51-
pparams['nvars'] = [(4,450,30), (4,450,30)]
51+
pparams['nvars'] = [(4,450,30)]
5252
pparams['u_adv'] = 0.02
5353
pparams['c_s'] = 0.3
5454
pparams['Nfreq'] = 0.01
5555
pparams['x_bounds'] = [(-150.0, 150.0)]
5656
pparams['z_bounds'] = [( 0.0, 10.0)]
57-
pparams['order'] = [4, 2] # [fine_level, coarse_level]
58-
pparams['order_upw'] = [5, 1]
59-
pparams['gmres_maxiter'] = [50, 50]
60-
pparams['gmres_restart'] = [20, 20]
61-
pparams['gmres_tol'] = [1e-8, 1e-8]
57+
pparams['order'] = [4] # [fine_level, coarse_level]
58+
pparams['order_upw'] = [5]
59+
pparams['gmres_maxiter'] = [50]
60+
pparams['gmres_restart'] = [20]
61+
pparams['gmres_tol_limit'] = [1e-5]
62+
pparams['gmres_tol_factor'] = [0.1]
6263

6364
# This comes as read-in for the transfer operations
6465
tparams = {}
@@ -74,8 +75,8 @@
7475
description['sweeper_class'] = imex_1st_order
7576
description['level_params'] = lparams
7677
description['hook_class'] = plot_solution
77-
description['transfer_class'] = mesh_to_mesh_2d
78-
description['transfer_params'] = tparams
78+
# description['transfer_class'] = mesh_to_mesh_2d
79+
# description['transfer_params'] = tparams
7980

8081
# quickly generate block of steps
8182
MS = mp.generate_steps(num_procs,sparams,description)

0 commit comments

Comments
 (0)