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

« back to all changes in this revision

Viewing changes to examples/C/global-array/adios_global_2files.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:
7
7
 
8
8
#include <stdio.h>
9
9
#include "mpi.h"
10
 
#include "adios.h"
 
10
#include "public/adios.h"
11
11
int main (int argc, char ** argv) 
12
12
{
13
13
        char        filename [256];
42
42
         * there are 2 files generated. 
43
43
         */
44
44
        sprintf (filename, "adios_global_%5.5d.bp", color);
45
 
        adios_init ("adios_global.xml");
46
 
        adios_open (&adios_handle, "temperature", filename, "w", &comm);
 
45
        adios_init ("adios_global.xml", MPI_COMM_WORLD);
 
46
        adios_open (&adios_handle, "temperature", filename, "w", comm);
47
47
        #include "gwrite_temperature.ch"
48
48
        adios_close (adios_handle);
49
49
        adios_finalize (rank);