99
1010step_sizes = {
1111 'RBC3DG4R4Ra1e5' : [8e-2 , 4e-2 , 2e-2 , 1e-2 , 5e-3 ],
12- 'RBC3DG4R4SDC23Ra1e5' : [8e-2 , 4e-2 , 2e-2 , 1e-2 , 5e-3 , 2.5e-3 ],
13- 'RBC3DG4R4SDC34Ra1e5' : [8e-2 , 4e-2 , 2e-2 , 1e-2 , 5e-3 ],
12+ # 'RBC3DG4R4SDC23Ra1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3, 2.5e-3],
13+ # 'RBC3DG4R4SDC34Ra1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3],
14+ 'RBC3DG4R4SDC23Ra1e5' : [5e-3 * 2 ** i for i in range (5 )],
15+ 'RBC3DG4R4SDC44Ra1e5' : [5e-3 * 2 ** i for i in range (5 )],
16+ # 'RBC3DG4R4SDC44Ra1e5': [1e-3 * 2**i for i in range(8)],
17+ 'RBC3DG4R4SDC34Ra1e5' : [1e-3 * 2 ** i for i in range (10 )],
1418 'RBC3DG4R4RKRa1e5' : [8e-2 , 4e-2 , 2e-2 , 1e-2 , 5e-3 , 2.5e-3 ],
1519 # 'RBC3DG4R4EulerRa1e5': [8e-2, 4e-2, 2e-2, 1e-2, 5e-3],
1620 'RBC3DG4R4EulerRa1e5' : [1e-3 * 2 ** i for i in range (5 )],
@@ -30,7 +34,7 @@ def get_path(args):
3034
3135def compute_errors (args , dts , Tend ):
3236 errors = {'u' : [], 'v' : [], 'w' : [], 'T' : [], 'p' : [], 'dt' : []}
33- prob = RayleighBenard3D (nx = 4 , ny = 4 , nz = 4 )
37+ prob = RayleighBenard3D (nx = 4 , ny = 4 , nz = 4 , comm = MPI . COMM_SELF )
3438
3539 dts = np .sort (dts )[::- 1 ]
3640 ref = run (args , dts [- 1 ], Tend )
@@ -104,7 +108,7 @@ def run(args, dt, Tend):
104108 config .Tend = n_freefall_times .get (type (config ).__name__ , 3 )
105109
106110 ic_config_name = type (config ).__name__
107- for name in ['RK' , 'Euler' , 'O3' , 'O4' , 'SDC23' , 'SDC34' ]:
111+ for name in ['RK' , 'Euler' , 'O3' , 'O4' , 'SDC23' , 'SDC34' , 'SDC44' ]:
108112 ic_config_name = ic_config_name .replace (name , '' )
109113 ic_config = get_config ({** args , 'config' : ic_config_name })
110114 config .ic_config ['config' ] = type (ic_config )
0 commit comments