Debian Codegraph @

source/utils/adios_iotest/iotest-config/pipe2_03_conditional.txt

raw
1 # Config file for Task 1 in a pipeline
2 # - Produce variables a b c
3 # - Write variables a b c to stream_T1.bp
4
5 # Config file for Task 2 in a pipeline
6 # - Read in variables a b from Task 1 (ignore c) from stream_T1.bp
7 # using a different decomposition
8 # - Write variables a b to stream_T2.bp
9
10
11 group io_T1
12 # item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN]
13 array double a 2 100 200 X YZ
14 array float b 1 100 XYZ
15 array float c 3 100 200 300 XY z 1
16
17 group io_T2_in
18 # item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN]
19 array double a 2 100 200 XY Z
20 array float b 1 100 XYZ
21
22 group io_T2_out
23 # use all variables read into io_T2_in in the output
24 link group io_T2_in
25
26
27
28 # Task 1 actions
29 app 1
30 steps 3
31 sleep 5.0
32 # write all of io_T1 into stream_T1.bp
33 write stream_T1.bp io_T1
34
35 # Task 2 actions
36 app 2
37 steps over stream_T1.bp
38 # read a & b from stream_T1.bp using io_T2_in definition with blocking wait
39 read next stream_T1.bp io_T2_in -1 a b
40
41 # Sleep and write only if read was successful:
42 cond stream_T1.bp sleep 2.0
43 # write io_T2 into stream_T2.bp
44 cond stream_T1.bp write stream_T2.bp io_T2_out
45
46 sleep 1.123456789
47
48
49
50