new command line switch: --no-simulation
This allows to run only the debug functions (and some time later also export functions: x3d, pov, ...)pull/1/head
parent
de054658ef
commit
d9a58912d0
1
main.cpp
1
main.cpp
|
@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
||||||
cout << "\t\t--engine=sse_compressed\t\tengine using compressed operator + sse vector extensions" << endl;
|
cout << "\t\t--engine=sse_compressed\t\tengine using compressed operator + sse vector extensions" << endl;
|
||||||
cout << "\t\t--engine=multithreaded\t\tengine using compressed operator + sse vector extensions + multithreading" << endl;
|
cout << "\t\t--engine=multithreaded\t\tengine using compressed operator + sse vector extensions + multithreading" << endl;
|
||||||
cout << "\t--numThreads=<n>\tForce use n threads for multithreaded engine (needs: --engine=multithreaded)" << endl;
|
cout << "\t--numThreads=<n>\tForce use n threads for multithreaded engine (needs: --engine=multithreaded)" << endl;
|
||||||
|
cout << "\t--no-simulation\tonly run preprocessing; do not simulate" << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
12
openems.cpp
12
openems.cpp
|
@ -54,7 +54,7 @@ openEMS::openEMS()
|
||||||
DebugMat = false;
|
DebugMat = false;
|
||||||
DebugOp = false;
|
DebugOp = false;
|
||||||
m_debugCSX = false;
|
m_debugCSX = false;
|
||||||
m_debugBox = m_debugPEC = false;
|
m_debugBox = m_debugPEC = m_no_simulation = false;
|
||||||
endCrit = 1e-6;
|
endCrit = 1e-6;
|
||||||
m_OverSampling = 4;
|
m_OverSampling = 4;
|
||||||
|
|
||||||
|
@ -149,6 +149,12 @@ bool openEMS::parseCommandLineArgument( const char *argv )
|
||||||
m_engine = EngineType_Multithreaded;
|
m_engine = EngineType_Multithreaded;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(argv,"--no-simulation")==0)
|
||||||
|
{
|
||||||
|
cout << "openEMS - disabling simulation => preprocessing only" << endl;
|
||||||
|
m_no_simulation = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -253,6 +259,10 @@ int openEMS::SetupFDTD(const char* file)
|
||||||
else
|
else
|
||||||
NrTS = help;
|
NrTS = help;
|
||||||
|
|
||||||
|
// if the command line switch --no-simulation is used, fix NrTS
|
||||||
|
if (m_no_simulation)
|
||||||
|
NrTS = 0;
|
||||||
|
|
||||||
help = 0;
|
help = 0;
|
||||||
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
FDTD_Opts->QueryIntAttribute("CylinderCoords",&help);
|
||||||
if (help==1)
|
if (help==1)
|
||||||
|
|
|
@ -53,7 +53,7 @@ protected:
|
||||||
bool DebugMat;
|
bool DebugMat;
|
||||||
bool DebugOp;
|
bool DebugOp;
|
||||||
bool m_debugCSX;
|
bool m_debugCSX;
|
||||||
bool m_debugBox, m_debugPEC;
|
bool m_debugBox, m_debugPEC, m_no_simulation;
|
||||||
double endCrit;
|
double endCrit;
|
||||||
int m_OverSampling;
|
int m_OverSampling;
|
||||||
Operator* FDTD_Op;
|
Operator* FDTD_Op;
|
||||||
|
|
Loading…
Reference in New Issue