-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_Marmousi.py
More file actions
24 lines (17 loc) · 838 Bytes
/
run_Marmousi.py
File metadata and controls
24 lines (17 loc) · 838 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
# Marmousi (cdf01)
from Testes import *
from multiprocessing import Pool
degree=np.arange(3,31,2)
pool = Pool(processes=23) # start 12 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,'Marmousi_c','RK7','H_amplified',))
for l in range(50):
for i in range(4):
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,'Marmousi_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]]),'Marmousi_b',methods[4+j],'H_amplified',))
pool.close()
pool.join()