<?xml version="1.0"?>
<adios-config host-language="C" schema-version="1.1">
  <adios-group name="rectilinear2d" >
    <var name="nx_global"  path="" type="integer"/>
    <var name="ny_global"  path="" type="integer"/>
    <var name="nproc" path="" type="integer"/>
    <var name="offs_x" path="" type="integer"/>
    <var name="offs_y" path="" type="integer"/>
    <var name="nx_local"  path="" type="integer"/>
    <var name="ny_local"  path="" type="integer"/>

    <global-bounds dimensions="nx_global" offsets="offs_x">
        <var name="X" type="double" dimensions="nx_local"/>
    </global-bounds>

    <global-bounds dimensions="ny_global" offsets="offs_y">
        <var name="Y" type="double" dimensions="ny_local"/>
    </global-bounds>

    <mesh name="rectilinearmesh" type="rectilinear" time-varying="no">
         <nspace value="2" />
         <dimensions value="nx_global,ny_global" /> 
         <coordinates-multi-var value="X,Y" />
    </mesh>

    <global-bounds dimensions="nx_global,ny_global" offsets="offs_x,offs_y">
        <var name="data" type="double" mesh="rectilinearmesh" dimensions="nx_local,ny_local" center="point"/>
    </global-bounds>

  </adios-group>

  <!-- Choose an output method for the above group. 
       MPI: write 1 file, each process writes its piece into the same file
       POSIX: write 1 file per process writes 
       VAR_MERGE: aggregate and merge blocks (up to two levels of aggregation)
                  default aggregation buffer size is 2 MB
       VAR_MERGE: limit the aggregation level by decreasing the aggregation buffer
                  size to 300k
  -->
  <transport group="rectilinear2d" method="MPI"/>
  <!--
  <transport group="writer" method="POSIX"/>
  <transport group="writer" method="MPI_AGGREGATE">num_aggregators=4;num_ost=2</transport>
  <transport group="writer" method="PHDF5"/>
  <transport group="writer" method="VAR_MERGE">io_method=MPI</transport>
  <transport group="writer" method="VAR_MERGE">chunk_size=300000;io_method=MPI</transport>
  -->

  <buffer max-size-MB="4"/>

</adios-config>
