-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathex9.yml
40 lines (40 loc) · 1.38 KB
/
ex9.yml
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
30
31
32
33
34
35
36
37
38
39
40
# the alpha parameter
alpha: 0.125
# global data-size (excluding the number of ghost layers for boundary conditions)
global_size: { height: 60, width: 12 }
# degree of parallelism (number of blocks in each dimension)
parallelism: { height: 2, width: 2 }
# PDI configuration
pdi:
metadata: # small values for which PDI keeps a copy
ii: int
dsize: { type: array, subtype: int, size: 2 }
psize: { type: array, subtype: int, size: 2 }
pcoord: { type: array, subtype: int, size: 2 }
data: # values for which PDI does not keep a copy
main_field: { type: array, subtype: double, size: [ '$dsize[0]', '$dsize[1]' ] }
plugins:
#*** load the mpi plugin
#...
decl_hdf5:
file: ex9.h5
#*** add MPI communicator
#...
collision_policy: write_into
datasets:
#*** modify the size of datasets from local array to global array
#...
main_field: { type: array, subtype: double, size: [ 3, ..., ... ] }
write:
main_field:
when: '$ii>0 & $ii<4'
memory_selection:
size: ['$dsize[0]-2', '$dsize[1]-2']
start: [1, 1]
dataset_selection:
#*** define the size of the dataset selection in (x,y)-direction
#...
size: [1, ..., ...]
#*** modify the start point to avoid overlapping
#...
start: ['$ii-1', ..., ...]