Copyright 1998-2001, University of Notre Dame.
Authors: Jeffrey M. Squyres and Arun Rodrigues with Brian Barrett,
         Kinis L. Meyer, M. D. McNally, and Andrew Lumsdaine

This file is part of the Notre Dame LAM implementation of MPI.

You should have received a copy of the License Agreement for the Notre
Dame LAM implementation of MPI along with the software; see the file
LICENSE.  If not, contact Office of Research, University of Notre
Dame, Notre Dame, IN 46556.

Permission to modify the code and to distribute modified code is
granted, provided the text of this NOTICE is retained, a notice that
the code was modified is included with the above COPYRIGHT NOTICE and
with the COPYRIGHT NOTICE in the LICENSE file, and that the LICENSE
file is distributed with the modified code.

LICENSOR MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.
By way of example, but not limitation, Licensor MAKES NO
REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY
PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE COMPONENTS
OR DOCUMENTATION WILL NOT INFRINGE ANY PATENTS, COPYRIGHTS, TRADEMARKS
OR OTHER RIGHTS.

Additional copyrights may follow.


simple is a fairly straightforward example of using the MPI I/O
functions.  Each process writes to separate files and then reads them
back.  The filename is given as a command line argument.  Each process
writes to this filename with their rank number appended to it.

This program was taken directly from the ROMIO distribution.  It will
compile properly if ROMIO support was compiled into LAM (with the
--with-romio switch to ./configure).

Be sure to append the "-fname <filename>" command line arguments when
you run the program.

Use "make" to compile this example.  Make will use mpicc to compile
this program.  LAM's "mpicc" takes care of linking in all the
appropriate libraries, etc.:

       mpicc -o simple simple.c

