[cig-commits] r21554 - seismo/3D/SPECFEM3D_GLOBE/branches/SUNFLOWER_ADIOS

lefebvre at geodynamics.org lefebvre at geodynamics.org
Mon Mar 18 07:01:22 PDT 2013


Author: lefebvre
Date: 2013-03-18 07:01:22 -0700 (Mon, 18 Mar 2013)
New Revision: 21554

Modified:
   seismo/3D/SPECFEM3D_GLOBE/branches/SUNFLOWER_ADIOS/configure.ac
Log:
Generate a macro to config.h to store configuration flags.
Convert config.h to config.fh to insert defines in F90 files
	modified:   configure.ac

Modified: seismo/3D/SPECFEM3D_GLOBE/branches/SUNFLOWER_ADIOS/configure.ac
===================================================================
--- seismo/3D/SPECFEM3D_GLOBE/branches/SUNFLOWER_ADIOS/configure.ac	2013-03-16 13:34:48 UTC (rev 21553)
+++ seismo/3D/SPECFEM3D_GLOBE/branches/SUNFLOWER_ADIOS/configure.ac	2013-03-18 14:01:22 UTC (rev 21554)
@@ -10,7 +10,9 @@
 AC_PREREQ(2.61)
 AC_INIT([Specfem3D Globe], [6.0.0], [jtromp AT princeton.edu], [Specfem3DGlobe])
 AC_CONFIG_SRCDIR([src/specfem3D/specfem3D.F90])
-AC_CONFIG_HEADER([setup/config.h])
+AC_CONFIG_HEADERS([setup/config.h],
+                  [sed 's/\/\*\(.*\)\*\//!\1/g' setup/config.h > setup/config.fh])
+dnl [awk '/\/\*/,/\*\//{sub(/^/,"!")};{print}' setup/config.h > setup/config.fh])
 AC_CONFIG_MACRO_DIR([m4])
 
 
@@ -78,6 +80,7 @@
     AC_MSG_ERROR([$flags_guess failed])
 eval $flags
 
+
 AC_FC_WRAPPERS
 AC_LANG(Fortran)
 AC_FC_SRCEXT(f90)
@@ -136,6 +139,10 @@
     CIT_CUDA_COMPILER
 fi
 
+#mpbl: adding flags to config.h.in through autoheader in order to save them into the adios file.
+configure_flags_str="FC=$FC FCFLAGS=$FLAGS_NO_CHECK" 
+AC_DEFINE_UNQUOTED([CONFIGURE_FLAGS],["${configure_flags_str}"],
+          [configuration flags to be save in the adios output file.])
 # Checks for typedefs, structures, and compiler characteristics.
 
 
@@ -154,7 +161,7 @@
 AH_BOTTOM([
 /* Uncomment and define to select optimized file i/o for regional simulations */
 /* map fails when output files are > 4GB, which is often the case for GPU simulations */
-// #define USE_MAP_FUNCTION
+/* #define USE_MAP_FUNCTION */
 ])
 
 dnl end of configure.ac



More information about the CIG-COMMITS mailing list