~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to examples/C/flexpath_arrays/process_select/arrays_read.c

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
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:
22
22
int main (int argc, char ** argv) 
23
23
{
24
24
    /* application data structures */
25
 
    char        filename [256];
26
 
    int         rank, size, i, j;
 
25
    int         rank;
27
26
    int         NX, NY; 
28
27
    double      *t;
29
28
    int         *p;
30
29
 
31
30
    /* MPI and ADIOS data structures */
32
31
    MPI_Comm    comm = MPI_COMM_WORLD;
33
 
    int         adios_err;
34
 
    int64_t     adios_handle, adios_buf_size;
35
32
 
36
33
    /* MPI and ADIOS setup */
37
34
    MPI_Init (&argc, &argv);
51
48
    ADIOS_FILE* afile = adios_read_open("arrays", ADIOS_READ_METHOD_FLEXPATH, comm, 
52
49
                                        ADIOS_LOCKMODE_NONE, 30.0);
53
50
    /* Read arrays for each time step */
54
 
    int ii=0;
55
51
    while(adios_errno != err_end_of_stream){
56
52
 
57
53
        ADIOS_VARINFO* nx_info = adios_inq_var( afile, "NX");