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

« back to all changes in this revision

Viewing changes to examples/C/global-array/read_no_xml_write_byid.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:
26
26
 
27
27
int main (int argc, char ** argv) 
28
28
{
29
 
    char        filename [256];
30
29
    int         rank, size, i, j, npl, token;
31
30
    MPI_Comm    comm = MPI_COMM_WORLD;
32
31
    MPI_Status  status;
33
32
    enum ADIOS_READ_METHOD method = ADIOS_READ_METHOD_BP;
34
33
    ADIOS_SELECTION * sel;
35
34
    void * data = NULL;
36
 
    uint64_t start[1], count[1], bytes_read = 0;
 
35
    uint64_t start[1], count[1];
37
36
 
38
37
    MPI_Init (&argc, &argv);
39
38
    MPI_Comm_rank (comm, &rank);
77
76
    printf (" ======== Rank %d ========== \n", rank);
78
77
    npl = 10;
79
78
    for (i = 0; i < slice_size; i+=npl) {
80
 
        printf ("[%4.4d]  ", rank*slice_size+i);
 
79
        printf ("[%4.4lld]  ", rank*slice_size+i);
81
80
        for (j= 0; j < npl; j++) {
82
81
            printf (" %6.6g", * ((double *)data + i + j));
83
82
        }