From dd532463b48043a10c7d073c81aa7baccc895850 Mon Sep 17 00:00:00 2001
From: Deike Kleberg <deike.kleberg@mpimet.mpg.de>
Date: Fri, 8 Apr 2011 13:13:43 +0000
Subject: [PATCH] Add parallel I/O test programs to build.

---
 Makefile.am               | 2 +-
 Makefile.in               | 2 +-
 configure                 | 3 ++-
 configure.ac              | 4 +++-
 pioExamples/pio_write.F90 | 4 ++--
 5 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 0ddcb5e4b..89c5ac6df 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 #
-SUBDIRS = src interfaces app examples tests
+SUBDIRS = src interfaces app examples tests pioExamples
 #
 EXTRA_DIST=config/default doc/cdi_cman.pdf doc/cdi_fman.pdf src/cfortran.doc
 #
diff --git a/Makefile.in b/Makefile.in
index 08c568792..e522c4a77 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -267,7 +267,7 @@ top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
 
 #
-SUBDIRS = src interfaces app examples tests
+SUBDIRS = src interfaces app examples tests pioExamples
 #
 EXTRA_DIST = config/default doc/cdi_cman.pdf doc/cdi_fman.pdf src/cfortran.doc
 #
diff --git a/configure b/configure
index e5fbc62a0..19dc56060 100755
--- a/configure
+++ b/configure
@@ -24397,7 +24397,7 @@ fi
 
 
 
-ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings"
+ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings pioExamples/Makefile"
 
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
@@ -25692,6 +25692,7 @@ do
     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
     "cdi.settings") CONFIG_FILES="$CONFIG_FILES cdi.settings" ;;
+    "pioExamples/Makefile") CONFIG_FILES="$CONFIG_FILES pioExamples/Makefile" ;;
 
   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   esac
diff --git a/configure.ac b/configure.ac
index 5991f2f53..b47d79039 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,7 +180,9 @@ ACX_CHECK_CFINT([$srcdir/src/cfortran.h])
 
 AC_SUBST([CPPFLAGS])
 
-AC_OUTPUT(Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings)
+AC_OUTPUT([Makefile src/Makefile interfaces/Makefile app/Makefile \
+	tests/Makefile examples/Makefile cdi.settings \
+	pioExamples/Makefile])
 
 #  ----------------------------------------------------------------------
 #  Show configuration
diff --git a/pioExamples/pio_write.F90 b/pioExamples/pio_write.F90
index 38daa4f66..6555f758a 100755
--- a/pioExamples/pio_write.F90
+++ b/pioExamples/pio_write.F90
@@ -424,7 +424,7 @@ PROGRAM CDIWRITE
     WRITE ( 0, * ) '------------------------------------------------------------------'
   END IF
 
-  CALL FLUSH ( 0 )
+  FLUSH ( 0 )
   
   CALL MPI_COMM_FREE ( pioComm, error )
   CALL MPI_FINALIZE ( error )
@@ -438,7 +438,7 @@ PROGRAM CDIWRITE
   WRITE ( 0, * ) 'MAIN: Close time:', sumCLOSE, 's'
   WRITE ( 0, * ) '------------------------------------------------------------------'
   
-  CALL FLUSH ( 0 )
+  FLUSH ( 0 )
 #endif
   
   
-- 
GitLab