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

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

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

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

    <!-- 2D array to write with block,block decomposition -->
    <global-bounds dimensions="gdx,gdy" offsets="ox,oy">
        <var name="xy" type="double" dimensions="ldx,ldy"/>
    </global-bounds>
    <attribute name="xy/description" 
               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 max-size-MB="40"/>

</adios-config>
