From 21fab76679672c849e81a7b6a7d2e19fce490361 Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Mon, 1 May 2017 12:34:16 +0200 Subject: [PATCH] add debug PEC and debug CSX to API Signed-off-by: Thorsten Liebig --- openems.cpp | 4 ++-- openems.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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);