~ubuntu-branches/ubuntu/utopic/adios/utopic

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2013-12-09 15:21:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20131209152131-jtd4fpmdv3xnunnm
Tags: 1.5.0-1
* New upstream.
* Standards-Version: 3.9.5
* Include latest config.{sub,guess} 
* New watch file.
* Create libadios-bin for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        MPI_Comm_rank (MPI_COMM_WORLD, &rank);
30
30
        MPI_Comm_size (comm, &size);
31
31
 
32
 
        adios_init ("adios_globaltime.xml");
 
32
        adios_init ("adios_globaltime.xml", comm);
33
33
        strcpy (filename, "adios_globaltime.bp");
34
34
        for (it =1; it <= 13; it++) {
35
35
 
40
40
                        p[i] = it*1000.0 + rank*NY + i;
41
41
                
42
42
                if (it==1)
43
 
                    adios_open (&adios_handle, "restart", filename, "w", &comm);
 
43
                    adios_open (&adios_handle, "restart", filename, "w", comm);
44
44
                else
45
 
                    adios_open (&adios_handle, "restart", filename, "a", &comm);
 
45
                    adios_open (&adios_handle, "restart", filename, "a", comm);
46
46
 
47
47
                #include "gwrite_restart.ch"
48
48
                adios_close (adios_handle);