| 1 |
# Config file for Task 1 in a pipeline |
| 2 |
# - Produce variables a b c |
| 3 |
# - Write variable a b c to stream_T1.bp |
| 4 |
# - Read in variables d e from stream_T2.bp from Task2 |
| 5 |
# - Write variables d e to debug_T2_to_T1.bp |
| 6 |
|
| 7 |
# Config file for Task 2 in a pipeline |
| 8 |
# - Read in variables a b from stream_T1.bp from Task 1 (ignore c) |
| 9 |
# - Produce variable d e |
| 10 |
# - Write variables d e to stream_T2.bp |
| 11 |
# - Write variables a b to debug_T1_to_T2.bp |
| 12 |
|
| 13 |
|
| 14 |
group io_T1 |
| 15 |
# item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN] |
| 16 |
array double a 2 100 200 X YZ |
| 17 |
array float b 1 100 XYZ |
| 18 |
array float c 3 100 200 300 x y z |
| 19 |
|
| 20 |
group io_T2 |
| 21 |
# item type varname N [dim1 dim2 ... dimN decomp1 decomp2 ... decompN] |
| 22 |
array int d 3 100 200 300 XY z 1 |
| 23 |
array float e 2 250 128 X YZ |
| 24 |
|
| 25 |
group debug_2_1 |
| 26 |
link group io_T2 d e |
| 27 |
|
| 28 |
group debug_1_2 |
| 29 |
link group io_T1 a b |
| 30 |
|
| 31 |
## Task 1 actions |
| 32 |
app 1 |
| 33 |
steps 3 |
| 34 |
sleep 2.0 |
| 35 |
# write all of io_T1 into stream_T1.bp |
| 36 |
write stream_T1.bp io_T1 |
| 37 |
sleep 0.1 |
| 38 |
# read select variables from stream_T2 using io_T2 definition |
| 39 |
read next stream_T2.bp io_T2 -1 d e |
| 40 |
cond stream_T2.bp sleep 1.123456789 |
| 41 |
cond stream_T2.bp write debug_T2_to_T1.bp debug_2_1 d e |
| 42 |
|
| 43 |
## Task 2 actions |
| 44 |
app 2 |
| 45 |
steps over stream_T1.bp |
| 46 |
sleep 0.1 |
| 47 |
# read a & b from stream_T1.bp using io_T1 definition |
| 48 |
read next stream_T1.bp io_T1 -1 a b |
| 49 |
sleep 2.0 |
| 50 |
# write d & e from io_T2 into stream_T2.bp |
| 51 |
cond stream_T1.bp write stream_T2.bp io_T2 d e |
| 52 |
# write a & b coming from stream_T1.bp into debug_T1_to_T2.bp |
| 53 |
cond stream_T1.bp write debug_T1_to_T2.bp debug_1_2 a b |
| 54 |
cond stream_T1.bp sleep 1.123456789 |
| 55 |
|
| 56 |
|