new info: hdf5 lib version and 32bit/64bit

pull/1/head
Sebastian Held 2010-09-17 15:32:11 +02:00
parent b0a0d69faf
commit 33d4229cf2
2 changed files with 16 additions and 1 deletions

View File

@ -34,8 +34,14 @@ int main(int argc, char *argv[])
{ {
openEMS FDTD; openEMS FDTD;
#ifdef _LP64
string bits = "64bit";
#else
string bits = "32bit";
#endif
cout << " -------------------------------------------------------------------- " << endl; cout << " -------------------------------------------------------------------- " << endl;
cout << " | openEMS version " GIT_VERSION << endl; cout << " | openEMS " << bits << " -- version " GIT_VERSION << endl;
cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl; cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl;
cout << " -------------------------------------------------------------------- " << endl; cout << " -------------------------------------------------------------------- " << endl;
cout << openEMS::GetExtLibsInfo() << endl; cout << openEMS::GetExtLibsInfo() << endl;

View File

@ -32,6 +32,7 @@
#include "FDTD/processfields_td.h" #include "FDTD/processfields_td.h"
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
#include <H5Cpp.h> // only for H5get_libversion()
#include "FDTD/operator_ext_lorentzmaterial.h" #include "FDTD/operator_ext_lorentzmaterial.h"
@ -168,6 +169,14 @@ string openEMS::GetExtLibsInfo()
str << "\tUsed external libraries:" << endl; str << "\tUsed external libraries:" << endl;
str << "\t\t" << ContinuousStructure::GetInfoLine(true) << 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(); return str.str();
} }