From 33d4229cf23603afe456691a8baa6281d4ed079c Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Fri, 17 Sep 2010 15:32:11 +0200 Subject: [PATCH] new info: hdf5 lib version and 32bit/64bit --- main.cpp | 8 +++++++- openems.cpp | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index be4577e..4f74ac2 100644 --- a/main.cpp +++ b/main.cpp @@ -34,8 +34,14 @@ int main(int argc, char *argv[]) { openEMS FDTD; +#ifdef _LP64 + string bits = "64bit"; +#else + string bits = "32bit"; +#endif + cout << " -------------------------------------------------------------------- " << endl; - cout << " | openEMS version " GIT_VERSION << endl; + cout << " | openEMS " << bits << " -- version " GIT_VERSION << endl; cout << " | (C) 2010 Thorsten Liebig GPL license" << endl; cout << " -------------------------------------------------------------------- " << endl; cout << openEMS::GetExtLibsInfo() << endl; diff --git a/openems.cpp b/openems.cpp index 929141e..e54683e 100644 --- a/openems.cpp +++ b/openems.cpp @@ -32,6 +32,7 @@ #include "FDTD/processfields_td.h" #include #include +#include // only for H5get_libversion() #include "FDTD/operator_ext_lorentzmaterial.h" @@ -168,6 +169,14 @@ string openEMS::GetExtLibsInfo() str << "\tUsed external libraries:" << endl; str << "\t\t" << ContinuousStructure::GetInfoLine(true) << endl; + // libhdf5 + unsigned int major, minor, release; + if (H5get_libversion( &major, &minor, &release ) >= 0) + { + str << "\t\t" << "hdf5 -- Version: " << major << '.' << minor << '.' << release << endl; + str << "\t\t" << " compiled against: " H5_VERS_INFO << endl; + } + return str.str(); }