From ad905ab4dd71d823c5610f802fe1a9faa9fa5333 Mon Sep 17 00:00:00 2001 From: roice Date: Wed, 10 Aug 2016 16:53:04 +0800 Subject: [PATCH] add RAOS_FEATURE_WAKES def to SimRecord.cxx --- CMakeLists.txt | 2 +- src/SimRecord.cxx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d230028a..30f859df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,7 +134,7 @@ link_directories(${PROJECT_SOURCE_DIR}/3rdparty/blas/BLAS-3.6.0) link_directories(${PROJECT_SOURCE_DIR}/3rdparty/blas/CBLAS/lib) # libgfortran if(APPLE) - link_directories(/usr/local/lib/gcc/5/) + link_directories(/usr/local/lib/gcc/6/) endif() #---- start compiling ---- diff --git a/src/SimRecord.cxx b/src/SimRecord.cxx index 700f3c88..68d36063 100644 --- a/src/SimRecord.cxx +++ b/src/SimRecord.cxx @@ -9,6 +9,8 @@ void SimSaveData(void) { +#ifdef RAOS_FEATURE_WAKES + hid_t file_id, dataset_id, dataspace_id; herr_t status; hsize_t data_dims[2]; @@ -107,4 +109,6 @@ void SimSaveData(void) /* Terminate access to the file. */ status = H5Fclose(file_id); + +#endif }