diff --git a/tools/global.cpp b/tools/global.cpp index d89d4f6..855a920 100644 --- a/tools/global.cpp +++ b/tools/global.cpp @@ -28,6 +28,7 @@ Global::Global() { m_showProbeDiscretization = false; m_nativeFieldDumps = false; + m_VerboseLevel = 0; } void Global::ShowArguments(ostream& ostr, string front) @@ -54,5 +55,11 @@ bool Global::parseCommandLineArgument( const char *argv ) m_nativeFieldDumps = true; return true; } + else if (strcmp(argv,"-v")==0) + { + cout << "openEMS - verbose level 1" << endl; + m_VerboseLevel = 1; + return true; + } return false; } diff --git a/tools/global.h b/tools/global.h index 13b78ec..98b5ccb 100644 --- a/tools/global.h +++ b/tools/global.h @@ -37,9 +37,13 @@ public: void ShowArguments(std::ostream& ostr, std::string front=std::string()); + void SetVerboseLevel(int level) {m_VerboseLevel=level;} + int GetVerboseLevel() const {return m_VerboseLevel;} + protected: bool m_showProbeDiscretization; bool m_nativeFieldDumps; + int m_VerboseLevel; }; extern Global g_settings;