~ubuntu-branches/debian/stretch/adios/stretch

« back to all changes in this revision

Viewing changes to examples/C/global-array-time/adios_read_globaltime_streaming.c

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20140616230638-5a0z7ylxx8i0edrg
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
int main (int argc, char ** argv) 
21
21
{
22
 
    char        filename [256];
23
 
    int         rank, size, i, j, NX = 16;
 
22
    int         rank, size, i, j;
24
23
    MPI_Comm    comm = MPI_COMM_WORLD;
25
24
    ADIOS_FILE * f;
26
25
    ADIOS_VARINFO * v;
29
28
    int retval = 0;
30
29
    float timeout_sec = 1.0; 
31
30
 
32
 
    void * data = NULL, * data1 = NULL, * data2 = NULL;
33
 
    uint64_t start[2], count[2], bytes_read = 0;
34
 
    struct timeval t0, t1;
 
31
    void * data = NULL;
 
32
    uint64_t start[2], count[2];
35
33
 
36
34
    MPI_Init (&argc, &argv);
37
35
 
65
63
 
66
64
        printf ("ndim = %d\n",  v->ndim);
67
65
        //printf ("nsteps = %d\n",  v->nsteps);
68
 
        printf ("dims[%lu][%lu]\n",  v->dims[0], v->dims[1]);
 
66
        printf ("dims[%llu][%llu]\n",  v->dims[0], v->dims[1]);
69
67
 
70
68
        uint64_t slice_size = v->dims[0]/size;
71
69
        if (rank == size-1)