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(); }