BPFile reader misses last step in streaming mode
Created by: pnorbert
If I run the heat transfer producing N output steps (initial condition + the number of requested steps), then the reader will only process N-1 steps.
$ mpirun -n 2 ./bin/heatTransfer_write_adios2 /home/adios/work/ADIOS2/examples/heatTransfer/heat_bpfile.xml heat.bp 2 1 5 6 1 1 Step 1: Total runtime = 0.00218892s
$ bpls -lav heat.bp -d -n 6 -f "%6.2g" File info: of groups: 2 of variables: 1 of attributes: 0 of meshes: 0 time steps: 0 - 1 file size: 632 bytes bp version: 3 endianness: Little Endian statistics: Min / Max / Avg / Std_dev
double T 2*{10, 6} = -3.6591 / 3.1591 / null / null (0,0,0) 1 1 2.7 1 -0.73 1 (0,1,0) -1.9 -1.9 -0.2 -1.9 -3.7 -1.9 (0,2,0) 1.4 1.4 3.2 1.4 -0.3 1.4 (0,3,0) 1.4 1.4 3.2 1.4 -0.3 1.4 (0,4,0) -1.9 -1.9 -0.2 -1.9 -3.7 -1.9 (0,5,0) 1 1 2.7 1 -0.73 1 (0,6,0) -1.9 -1.9 -0.2 -1.9 -3.7 -1.9 (0,7,0) 1.4 1.4 3.2 1.4 -0.3 1.4 (0,8,0) 1.4 1.4 3.2 1.4 -0.3 1.4 (0,9,0) -1.9 -1.9 -0.2 -1.9 -3.7 -1.9 (1,0,0) 1.2 1.2 1.5 0.81 0.12 0.87 (1,1,0) 0.31 -0.32 0.37 -0.67 -1.7 -0.032 (1,2,0) 1.1 1.1 1.8 0.76 -0.28 0.72 (1,3,0) 1.1 1.1 1.8 0.76 -0.28 0.72 (1,4,0) 0.31 -0.32 0.37 -0.67 -1.7 -0.032 (1,5,0) 0.23 0.18 0.87 -0.17 -1.2 -0.12 (1,6,0) 0.31 -0.32 0.37 -0.67 -1.7 -0.032 (1,7,0) 1.1 1.1 1.8 0.76 -0.28 0.72 (1,8,0) 1.1 1.1 1.8 0.76 -0.28 0.72 (1,9,0) 0.71 0.076 0.42 -0.27 -0.96 0.37
$ mpirun -n 1 ./bin/heatTransfer_read /home/adios/work/ADIOS2/examples/heatTransfer/heat_bpfile.xml heat.bp 1 1 gndx = 10 gndy = 6 rank 0 reads 2D slice 10 x 6 from offset (0,0) Processing step 0 There should be another step "Processing step 1" here
$ cat data.0 rank=0 size=10x6 offsets=0:0 step=0 time row columns 0...5
0 1 2 3 4 5
0 0 1 1 2.7 1 -0.73 1
0 1 -1.9 -1.9 -0.2 -1.9 -3.7 -1.9
0 2 1.4 1.4 3.2 1.4 -0.3 1.4
0 3 1.4 1.4 3.2 1.4 -0.3 1.4
0 4 -1.9 -1.9 -0.2 -1.9 -3.7 -1.9
0 5 1 1 2.7 1 -0.73 1
0 6 -1.9 -1.9 -0.2 -1.9 -3.7 -1.9
0 7 1.4 1.4 3.2 1.4 -0.3 1.4
0 8 1.4 1.4 3.2 1.4 -0.3 1.4
0 9 -1.9 -1.9 -0.2 -1.9 -3.7 -1.9