-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_piece_GdM.py
More file actions
29 lines (22 loc) · 1003 Bytes
/
run_piece_GdM.py
File metadata and controls
29 lines (22 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# piece_GdM (guepardo00)
from Testes import *
from multiprocessing import Pool
# degree=np.arange(3,31,2)
degree=np.arange(4,31,2)
# degree=np.arange(3,31)
# pool = Pool(processes=22) # start 23 worker processes
pool = Pool(processes=40) # start 23 worker processes
T=3
T_frac_snapshot=1/2
methods=np.array(['RK7','RK2','RK4','2MS','FA','HORK','KRY'])
# pool.apply_async(wave_eq, args=(0.005,'scalar_dx2',2,1,0.8,30,'8',T,T_frac_snapshot,np.array([1]),0,'piece_GdM_c','RK7','H_amplified',))
for l in range(50):
# for l in range(1):
for i in range(4):
# for i in range(1):
pool.apply_async(wave_eq, args=(0.01,'scalar_dx2',2,1,0.8,30,'8',T,T_frac_snapshot,np.array([l+1]),0,'piece_GdM_b',methods[i],'H_amplified',))
for i in range(len(degree)):
for j in range(3):
pool.apply_async(wave_eq, args=(0.01,'scalar_dx2',2,1,0.8,30,'8',T,T_frac_snapshot,np.array([l+1]),np.array([degree[i]]),'piece_GdM_b',methods[4+j],'H_amplified',))
pool.close()
pool.join()