<?xml version="1.0"?>
<adios-config host-language="Fortran">
  <adios-group name="writer2D">

    <var name="nproc" path="/info" type="integer"/>
    <attribute name="description" path="/info/nproc" value="Number of writers"/>
    <var name="npx"   path="/info" type="integer"/>
    <attribute name="description" path="/info/npx" value="Number of processors in x dimension"/>
    <var name="npy"   path="/info" type="integer"/>
    <attribute name="description" path="/info/npy" value="Number of processors in y dimension"/>

    <var name="gdx"  path="" type="integer"/>
    <attribute name="description" path="/gdx" value="Global array size in x dimension"/>
    <var name="gdy"  path="" type="integer"/>
    <attribute name="description" path="/gdy" value="Global array size in y dimension"/>

    <!-- Auxiliary variables for global array indexing written (overwritten) by each process -->
    <var name="ox"   path="/aux" type="integer"/>
    <var name="oy"   path="/aux" type="integer"/>
    <var name="ldx"  path="/aux" type="integer"/>
    <var name="ldy"  path="/aux" type="integer"/>

    <!-- 2D array to write with block,block decomposition -->
    <global-bounds dimensions="gdx,gdy" offsets="ox,oy">
        <var name="xy" path="" type="double" dimensions="ldx,ldy"/>
    </global-bounds>
    <attribute name="description" path="/xy" 
               value="2D array with 2D decomposition"/>

  </adios-group>

  <!-- Use transport method 
       DART for memory-to-memory coupling or
       MPI  for file-based coupling
  -->
  <transport group="writer2D" method="MPI">verbose=3</transport>
  <!--transport group="writer2D" method="VAR_MERGE">io_method=MPI</transport-->
  <!--transport group="writer2D" method="DATASPACES">verbose=3</transport-->
  <!--transport group="writer2D" method="FLEXPATH">QUEUE_SIZE=10;verbose=3</transport-->

  <buffer size-MB="40" allocate-time="now"/>

</adios-config>
