new commandline option: --debug-CSX

pull/1/head
Thorsten Liebig 2010-07-08 11:28:11 +02:00
parent 290dd944df
commit 7869a5f2d5
3 changed files with 12 additions and 0 deletions

View File

@ -47,6 +47,7 @@ int main(int argc, char *argv[])
cout << "\t--debug-material\tDump material distribution to a vtk file for debugging" << endl; cout << "\t--debug-material\tDump material distribution to a vtk file for debugging" << endl;
cout << "\t--debug-operator\tDump operator to vtk file for debugging" << endl; cout << "\t--debug-operator\tDump operator to vtk file for debugging" << endl;
cout << "\t--debug-boxes\t\tDump e.g. probe boxes to vtk file for debugging" << endl; cout << "\t--debug-boxes\t\tDump e.g. probe boxes to vtk file for debugging" << endl;
cout << "\t--debug-CSX\t\tWrite CSX geometry file to debugCSX.xml" << endl;
cout << "\t--engine=<type>\t\tChoose engine type" << endl; cout << "\t--engine=<type>\t\tChoose engine type" << endl;
cout << "\t\t--engine=fastest\t\tfastest available engine" << endl; cout << "\t\t--engine=fastest\t\tfastest available engine" << endl;
cout << "\t\t--engine=sse\t\t\tengine using sse vector extensions" << endl; cout << "\t\t--engine=sse\t\t\tengine using sse vector extensions" << endl;

View File

@ -50,6 +50,7 @@ openEMS::openEMS()
Enable_Dumps = true; Enable_Dumps = true;
DebugMat = false; DebugMat = false;
DebugOp = false; DebugOp = false;
m_debugCSX = false;
m_debugBox = m_debugPEC = false; m_debugBox = m_debugPEC = false;
endCrit = 1e-6; endCrit = 1e-6;
m_OverSampling = 4; m_OverSampling = 4;
@ -109,6 +110,12 @@ bool openEMS::parseCommandLineArgument( const char *argv )
m_debugPEC = true; m_debugPEC = true;
return true; return true;
} }
else if (strcmp(argv,"--debug-CSX")==0)
{
cout << "openEMS - dumping CSX geometry to 'debugCSX.xml'" << endl;
m_debugCSX = true;
return true;
}
else if (strcmp(argv,"--engine=multithreaded")==0) else if (strcmp(argv,"--engine=multithreaded")==0)
{ {
cout << "openEMS - enabled multithreading" << endl; cout << "openEMS - enabled multithreading" << endl;
@ -224,6 +231,9 @@ int openEMS::SetupFDTD(const char* file)
// return(-2); // return(-2);
} }
if (m_debugCSX)
CSX.Write2XML("debugCSX.xml");
//*************** setup operator ************// //*************** setup operator ************//
if (CylinderCoords) if (CylinderCoords)
{ {

View File

@ -52,6 +52,7 @@ protected:
bool Enable_Dumps; bool Enable_Dumps;
bool DebugMat; bool DebugMat;
bool DebugOp; bool DebugOp;
bool m_debugCSX;
bool m_debugBox, m_debugPEC; bool m_debugBox, m_debugPEC;
double endCrit; double endCrit;
int m_OverSampling; int m_OverSampling;