From 047be918c872e500f868ecce3cad699d5eb3c7ee Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 22 Sep 2004 11:04:24 -0500 Subject: [svn-r9303] Updated the Fortran Sample program to use the INCLUDE instead of the USE statement. --- release_docs/INSTALL_parallel | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/release_docs/INSTALL_parallel b/release_docs/INSTALL_parallel index 64e85c4..65014da 100644 --- a/release_docs/INSTALL_parallel +++ b/release_docs/INSTALL_parallel @@ -382,13 +382,19 @@ main(int ac, char **av) ! The following example demonstrates how to create and close a parallel ! file using MPI-IO calls. ! +! USE MPI is the proper way to bring in MPI definitions but many +! MPI Fortran compiler supports the pseudo standard of INCLUDE. +! So, HDF5 uses the INCLUDE statement instead. +! PROGRAM MPIOEXAMPLE - USE MPI - + ! USE MPI + IMPLICIT NONE + INCLUDE 'mpif.h' + CHARACTER(LEN=80), PARAMETER :: filename = "filef.h5" ! File name INTEGER :: ierror ! Error flag INTEGER :: fh ! File handle -- cgit v0.12