new commandline option: --debug-CSX
parent
290dd944df
commit
7869a5f2d5
1
main.cpp
1
main.cpp
|
@ -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-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-CSX\t\tWrite CSX geometry file to debugCSX.xml" << endl;
|
||||
cout << "\t--engine=<type>\t\tChoose engine type" << endl;
|
||||
cout << "\t\t--engine=fastest\t\tfastest available engine" << endl;
|
||||
cout << "\t\t--engine=sse\t\t\tengine using sse vector extensions" << endl;
|
||||
|
|
10
openems.cpp
10
openems.cpp
|
@ -50,6 +50,7 @@ openEMS::openEMS()
|
|||
Enable_Dumps = true;
|
||||
DebugMat = false;
|
||||
DebugOp = false;
|
||||
m_debugCSX = false;
|
||||
m_debugBox = m_debugPEC = false;
|
||||
endCrit = 1e-6;
|
||||
m_OverSampling = 4;
|
||||
|
@ -109,6 +110,12 @@ bool openEMS::parseCommandLineArgument( const char *argv )
|
|||
m_debugPEC = 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)
|
||||
{
|
||||
cout << "openEMS - enabled multithreading" << endl;
|
||||
|
@ -224,6 +231,9 @@ int openEMS::SetupFDTD(const char* file)
|
|||
// return(-2);
|
||||
}
|
||||
|
||||
if (m_debugCSX)
|
||||
CSX.Write2XML("debugCSX.xml");
|
||||
|
||||
//*************** setup operator ************//
|
||||
if (CylinderCoords)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue