new info: hdf5 lib version and 32bit/64bit
parent
b0a0d69faf
commit
33d4229cf2
8
main.cpp
8
main.cpp
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue