show info about external libs on startup
parent
3caa27ab33
commit
ee887e7ea1
3
main.cpp
3
main.cpp
|
@ -37,7 +37,8 @@ int main(int argc, char *argv[])
|
|||
cout << " -------------------------------------------------------------------- " << endl;
|
||||
cout << " | openEMS version " GIT_VERSION << endl;
|
||||
cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl;
|
||||
cout << " -------------------------------------------------------------------- " << endl << endl;
|
||||
cout << " -------------------------------------------------------------------- " << endl;
|
||||
cout << openEMS::GetExtLibsInfo() << endl;
|
||||
|
||||
if (argc<=1)
|
||||
{
|
||||
|
|
10
openems.cpp
10
openems.cpp
|
@ -160,6 +160,16 @@ bool openEMS::parseCommandLineArgument( const char *argv )
|
|||
return false;
|
||||
}
|
||||
|
||||
string openEMS::GetExtLibsInfo()
|
||||
{
|
||||
stringstream str;
|
||||
|
||||
str << "\tUsed external libraries:" << endl;
|
||||
str << "\t\t" << ContinuousStructure::GetInfoLine(true) << endl;
|
||||
|
||||
return str.str();
|
||||
}
|
||||
|
||||
bool openEMS::SetupBoundaryConditions(TiXmlElement* BC)
|
||||
{
|
||||
int EC; //error code of tinyxml
|
||||
|
|
|
@ -18,6 +18,10 @@
|
|||
#ifndef OPENEMS_H
|
||||
#define OPENEMS_H
|
||||
|
||||
#include <sstream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Operator;
|
||||
class Engine;
|
||||
class ProcessingArray;
|
||||
|
@ -44,6 +48,9 @@ public:
|
|||
void DebugOperator() {DebugOp=true;}
|
||||
void DebugBox() {m_debugBox=true;}
|
||||
|
||||
//! Get informations about external libs used by openEMS
|
||||
static string GetExtLibsInfo();
|
||||
|
||||
protected:
|
||||
bool CylinderCoords;
|
||||
|
||||
|
|
Loading…
Reference in New Issue