diff --git a/openems.cpp b/openems.cpp index 1d08ef7..057b573 100644 --- a/openems.cpp +++ b/openems.cpp @@ -182,13 +182,13 @@ bool openEMS::parseCommandLineArgument( const char *argv ) else if (strcmp(argv,"--debug-PEC")==0) { cout << "openEMS - dumping PEC info to 'PEC_dump.vtk'" << endl; - m_debugPEC = true; + DebugPEC(); return true; } else if (strcmp(argv,"--debug-CSX")==0) { cout << "openEMS - dumping CSX geometry to 'debugCSX.xml'" << endl; - m_debugCSX = true; + DebugCSX(); return true; } else if (strcmp(argv,"--engine=basic")==0) diff --git a/openems.h b/openems.h index d194050..1f6941a 100644 --- a/openems.h +++ b/openems.h @@ -73,6 +73,8 @@ public: void DebugMaterial() {DebugMat=true;} void DebugOperator() {DebugOp=true;} void DebugBox() {m_debugBox=true;} + void DebugPEC() {m_debugPEC=true;} + void DebugCSX() {m_debugCSX=true;} void Set_BC_Type(int idx, int type); int Get_BC_Type(int idx);