aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhinder <hinder@f88db872-0e4f-0410-b76b-b9085cfa78c5>2012-05-14 20:24:04 +0000
committerhinder <hinder@f88db872-0e4f-0410-b76b-b9085cfa78c5>2012-05-14 20:24:04 +0000
commit3fad32303fe0161cea296d14be33ce6277b3e001 (patch)
tree25704421e4b4854af76ecc474f441464ec69b07a
parent49f886484c8a13f519e326f45c4a09b71f974522 (diff)
Use optional HDF5 capability
The previous method no longer works git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1565 f88db872-0e4f-0410-b76b-b9085cfa78c5
-rw-r--r--configuration.ccl4
-rw-r--r--src/patch/patch_system.cc6
2 files changed, 7 insertions, 3 deletions
diff --git a/configuration.ccl b/configuration.ccl
index ef770a1..b0986dc 100644
--- a/configuration.ccl
+++ b/configuration.ccl
@@ -1 +1,5 @@
REQUIRES THORNS: SpaceMask
+
+OPTIONAL HDF5
+{
+}
diff --git a/src/patch/patch_system.cc b/src/patch/patch_system.cc
index 8059453..3e6296b 100644
--- a/src/patch/patch_system.cc
+++ b/src/patch/patch_system.cc
@@ -80,7 +80,7 @@
#include "../jtutil/linear_map.hh"
using jtutil::error_exit;
-#ifdef CCTK_HDF5
+#ifdef HAVE_CAPABILITY_HDF5
// Some macros to fix compatibility issues as long as 1.8.0 is in beta
// phase
# define H5_USE_16_API 1
@@ -2539,7 +2539,7 @@ fclose(input_fp);
//******************************************************************************
-#ifdef CCTK_HDF5
+#ifdef HAVE_CAPABILITY_HDF5
static void WriteAttribute (const hid_t dataset, const char* name, char value);
static void WriteAttribute (const hid_t dataset, const char* name, const char* values);
@@ -2616,7 +2616,7 @@ if (want_ghost_zones && output_xyz_flag && !radius_is_ghosted_flag)
unknown_gfn,
unknown_radius_gfn); /*NOTREACHED*/
-#ifdef CCTK_HDF5
+#ifdef HAVE_CAPABILITY_HDF5
using std::ostringstream;
using std::string;